fix: Last (hopefully) improvements on app theming

This commit is contained in:
Alberto Ponces 2022-09-07 12:38:40 +01:00
parent 9b4a8ebc69
commit 351b04dd46

View File

@ -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,