Small fix

This commit is contained in:
Konstantin Ullrich 2021-05-24 16:37:03 +02:00
parent 883dbce662
commit fd1043fe99
No known key found for this signature in database
GPG Key ID: E9562A013280F5DB
2 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class MyFormState extends State<MyForm> {
Future _cancelTimer() async {
await _updateLokinetStatus();
_timer.cancel();
if (_timer != null) _timer.cancel();
}
Future toogleLokinet() async {

View File

@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
bool inDarkMode(BuildContext context) {
// return false;
var brightness = MediaQuery.of(context).platformBrightness;
return brightness == Brightness.dark;
}