Small fix
This commit is contained in:
parent
883dbce662
commit
fd1043fe99
|
@ -91,7 +91,7 @@ class MyFormState extends State<MyForm> {
|
|||
|
||||
Future _cancelTimer() async {
|
||||
await _updateLokinetStatus();
|
||||
_timer.cancel();
|
||||
if (_timer != null) _timer.cancel();
|
||||
}
|
||||
|
||||
Future toogleLokinet() async {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue