mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
FlutterError: Null check operator used on a null value
This commit is contained in:
parent
97c65675f6
commit
0d8f125a63
1 changed files with 3 additions and 4 deletions
|
@ -185,16 +185,15 @@ class AnimatedDialogState extends State<AnimatedDialog> with SingleTickerProvide
|
||||||
_animateForward();
|
_animateForward();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _animateForward() {
|
Future<void> _animateForward() async {
|
||||||
setState(() {
|
setState(() {
|
||||||
_isDialogShown = true;
|
_isDialogShown = true;
|
||||||
});
|
});
|
||||||
_animationController.forward();
|
await _animationController.forward();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _animateReverse() async {
|
Future<void> _animateReverse() async {
|
||||||
_animationController.reverse();
|
await _animationController.reverse();
|
||||||
await Future.delayed(_animationController.reverseDuration! * timeDilation);
|
|
||||||
setState(() {
|
setState(() {
|
||||||
_isDialogShown = false;
|
_isDialogShown = false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue