Bug fixes
This commit is contained in:
parent
6697346628
commit
539db78749
|
@ -21,7 +21,8 @@ class _ScreenWelcomeState extends State<ScreenWelcome> {
|
|||
void initState() {
|
||||
super.initState();
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) async {
|
||||
await Future.delayed(const Duration(milliseconds: 10));
|
||||
WidgetsBinding.instance.platformDispatcher.onPlatformBrightnessChanged =
|
||||
() {
|
||||
// invert colors used, because brightness not updated yet
|
||||
|
|
|
@ -240,7 +240,10 @@ class _ScreenSettingsInterfaceState extends State<ScreenSettingsInterface> {
|
|||
return Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Theme(
|
||||
data: ThemeData.from(
|
||||
data: (prefs?.getBool("useDeviceTheme") ??
|
||||
false)
|
||||
? Theme.of(context)
|
||||
: ThemeData.from(
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.black)),
|
||||
child: DurationPicker(
|
||||
|
|
Loading…
Reference in New Issue