From 351b04dd46301a604b68547795be4ca26fcb0e88 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 7 Sep 2022 12:38:40 +0100 Subject: [PATCH] fix: Last (hopefully) improvements on app theming --- lib/ui/widgets/settingsView/custom_text_field.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ui/widgets/settingsView/custom_text_field.dart b/lib/ui/widgets/settingsView/custom_text_field.dart index 340f2318..52b7abf1 100644 --- a/lib/ui/widgets/settingsView/custom_text_field.dart +++ b/lib/ui/widgets/settingsView/custom_text_field.dart @@ -30,6 +30,14 @@ class CustomTextField extends StatelessWidget { filled: true, fillColor: Theme.of(context).colorScheme.secondaryContainer, hintText: hint, + hintStyle: TextStyle( + color: Theme.of(context).colorScheme.secondary, + ), + floatingLabelStyle: MaterialStateTextStyle.resolveWith( + (states) => states.contains(MaterialState.focused) + ? TextStyle(color: Theme.of(context).colorScheme.primary) + : TextStyle(color: Theme.of(context).colorScheme.secondary), + ), contentPadding: const EdgeInsets.symmetric( vertical: 8.0, horizontal: 16.0,