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