File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import "package:camera/camera.dart";
44import "package:flow/services/camera.dart" ;
55import "package:flow/utils/utils.dart" ;
66import "package:flutter/material.dart" ;
7+ import "package:flutter/scheduler.dart" ;
78import "package:logging/logging.dart" ;
89
910final Logger _log = Logger ("CameraPageBase" );
@@ -39,9 +40,17 @@ class CameraPageBaseState extends State<CameraPageBase>
3940 CameraService .initialize ().then ((_) {
4041 if (! mounted) return ;
4142 _initializeCameraController ();
43+ SchedulerBinding .instance.addPostFrameCallback ((_) {
44+ if (! mounted) return ;
45+ setState (() {});
46+ });
4247 });
4348 } else {
4449 _initializeCameraController ();
50+ SchedulerBinding .instance.addPostFrameCallback ((_) {
51+ if (! mounted) return ;
52+ setState (() {});
53+ });
4554 }
4655 }
4756
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: A personal finance managing app
33
44publish_to : " none" # Remove this line if you wish to publish to pub.dev
55
6- version : " 0.17.1+305 "
6+ version : " 0.17.1+306 "
77
88environment :
99 sdk : " >=3.10.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments