From ee168fdf1c7c3d4afa51cfdab5b9ee94b5ca3c94 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Sun, 1 Dec 2024 11:54:12 +0100 Subject: [PATCH] Country selector button invisible in dark mode (#5979) --- .../preferences/country_selector/country_selector.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/smooth_app/lib/pages/preferences/country_selector/country_selector.dart b/packages/smooth_app/lib/pages/preferences/country_selector/country_selector.dart index 483b7e3a37f..ddab1d609f9 100644 --- a/packages/smooth_app/lib/pages/preferences/country_selector/country_selector.dart +++ b/packages/smooth_app/lib/pages/preferences/country_selector/country_selector.dart @@ -13,6 +13,7 @@ import 'package:smooth_app/generic_lib/duration_constants.dart'; import 'package:smooth_app/helpers/provider_helper.dart'; import 'package:smooth_app/pages/prices/emoji_helper.dart'; import 'package:smooth_app/resources/app_icons.dart' as icons; +import 'package:smooth_app/themes/smooth_theme.dart'; import 'package:smooth_app/themes/smooth_theme_colors.dart'; import 'package:smooth_app/themes/theme_provider.dart'; import 'package:smooth_app/widgets/smooth_text.dart'; @@ -402,13 +403,14 @@ class _CountrySelectorBottomBar extends StatelessWidget { return EMPTY_WIDGET; } - final SmoothColorsThemeExtension? colors = - Theme.of(context).extension(); + final SmoothColorsThemeExtension colors = + context.extension(); return SmoothButtonsBar2( animate: true, - backgroundColor: - context.darkTheme() ? colors!.primaryDark : colors!.primaryMedium, + backgroundColor: context.lightTheme() + ? colors.primaryMedium + : colors.primaryUltraBlack, positiveButton: SmoothActionButton2( text: AppLocalizations.of(context).validate, icon: const icons.Arrow.right(),