From cc42bee88a392eef313514ac90dac3f5c3fdcdd2 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 11 Feb 2025 13:36:26 -0500 Subject: [PATCH] fix: remove expanded widget from country tile (#1765) --- .../widgets/country_picker_tile.dart | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/pangea/learning_settings/widgets/country_picker_tile.dart b/lib/pangea/learning_settings/widgets/country_picker_tile.dart index b02827638..63235a074 100644 --- a/lib/pangea/learning_settings/widgets/country_picker_tile.dart +++ b/lib/pangea/learning_settings/widgets/country_picker_tile.dart @@ -100,19 +100,17 @@ class CountryPickerTile extends StatelessWidget { style: const TextStyle(fontSize: 25), ), const SizedBox(width: 10), - Expanded( - child: Text( - CountryDisplayUtil.countryDisplayName( - country.name, - context, - ) ?? - '', - style: const TextStyle().copyWith( - color: Theme.of(context).textTheme.bodyLarge!.color, - fontSize: 14, - ), - overflow: TextOverflow.ellipsis, + Text( + CountryDisplayUtil.countryDisplayName( + country.name, + context, + ) ?? + '', + style: const TextStyle().copyWith( + color: Theme.of(context).textTheme.bodyLarge!.color, + fontSize: 14, ), + overflow: TextOverflow.ellipsis, ), if (isDropdown) Icon(