From a94feef80ed8a24aa0b17491138caad51555ef4b Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 6 Feb 2023 15:45:00 -0600 Subject: [PATCH] theme switching color fixes --- lib/pages/exchange_view/exchange_form.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pages/exchange_view/exchange_form.dart b/lib/pages/exchange_view/exchange_form.dart index 40c0eb7c9..8442d564d 100644 --- a/lib/pages/exchange_view/exchange_form.dart +++ b/lib/pages/exchange_view/exchange_form.dart @@ -763,6 +763,8 @@ class _ExchangeFormState extends ConsumerState { height: isDesktop ? 10 : 4, ), ExchangeTextField( + key: Key( + "exchangeTextFieldKeyFor_${Theme.of(context).extension()!.themeType.name}"), controller: _sendController, focusNode: _sendFocusNode, textStyle: STextStyles.smallMed14(context).copyWith( @@ -851,6 +853,8 @@ class _ExchangeFormState extends ConsumerState { height: isDesktop ? 10 : 7, ), ExchangeTextField( + key: Key( + "exchangeTextFieldKeyFor1_${Theme.of(context).extension()!.themeType.name}"), focusNode: _receiveFocusNode, controller: _receiveController, textStyle: STextStyles.smallMed14(context).copyWith( @@ -897,6 +901,7 @@ class _ExchangeFormState extends ConsumerState { SizedBox( height: 60, child: RateTypeToggle( + key: UniqueKey(), onChanged: onRateTypeChanged, ), ),