Modify Themes Startup Behaviour (#2288)

* feat(themes): Reflect current system theme at the start of the app if the themeMode is system mode

* feat(themes): Extract platform awareness for router into a function, and use where needed
This commit is contained in:
David Adegoke
2025-05-26 04:43:15 +03:00
committed by GitHub
parent df88914628
commit d342173239
3 changed files with 212 additions and 282 deletions
@@ -125,7 +125,6 @@ class BaseTextFormField extends StatelessWidget {
suffix: suffix,
suffixIcon: suffixIcon,
filled: !hasUnderlineBorder,
//border: !hasUnderlineBorder ? OutlineInputBorder() : null,
fillColor:
hasUnderlineBorder ? null : fillColor ?? Theme.of(context).colorScheme.surfaceContainer,
hintStyle: placeholderTextStyle ??
@@ -162,13 +161,6 @@ class BaseTextFormField extends StatelessWidget {
),
)
: null,
// OutlineInputBorder(
// borderRadius: BorderRadius.circular(10),
// borderSide: BorderSide(
// color: Theme.of(context).colorScheme.outlineVariant,
// width: 1.5,
// )
// ),
errorBorder: hasUnderlineBorder
? UnderlineInputBorder(
borderSide: BorderSide(color: Theme.of(context).colorScheme.error),