Skip to content

Commit cc42bee

Browse files
authored
fix: remove expanded widget from country tile (#1765)
1 parent 420a5dc commit cc42bee

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

lib/pangea/learning_settings/widgets/country_picker_tile.dart

+10-12
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,17 @@ class CountryPickerTile extends StatelessWidget {
100100
style: const TextStyle(fontSize: 25),
101101
),
102102
const SizedBox(width: 10),
103-
Expanded(
104-
child: Text(
105-
CountryDisplayUtil.countryDisplayName(
106-
country.name,
107-
context,
108-
) ??
109-
'',
110-
style: const TextStyle().copyWith(
111-
color: Theme.of(context).textTheme.bodyLarge!.color,
112-
fontSize: 14,
113-
),
114-
overflow: TextOverflow.ellipsis,
103+
Text(
104+
CountryDisplayUtil.countryDisplayName(
105+
country.name,
106+
context,
107+
) ??
108+
'',
109+
style: const TextStyle().copyWith(
110+
color: Theme.of(context).textTheme.bodyLarge!.color,
111+
fontSize: 14,
115112
),
113+
overflow: TextOverflow.ellipsis,
116114
),
117115
if (isDropdown)
118116
Icon(

0 commit comments

Comments
 (0)