-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading State for camera overlay capture #1918
base: main
Are you sure you want to change the base?
Conversation
child: CircularProgressIndicator( | ||
color: Colors.white, // Optional: Change the color of the progress indicator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we allow user to build his own loading indicator? if loading widget is not defined we can use this as default, but user should have the option to define his own widget for customization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we can have custom widget.
setState(() { | ||
isCropping = true; | ||
}); | ||
try { | ||
file = await takeOverlayCapture(); | ||
} on Exception catch (e) { | ||
print(e); | ||
} finally { | ||
setState(() { | ||
isCropping = false; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on the video in PR, this is taking too much time, is there a way to optimize this? maybe doing a something in background, please checkout why its taking that much time, we can push this for now, but there should be way to optimize take
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually there's image encoding decoding going on there and also file reading too
Github Ticket: #1913
While processing image to crop for overlay Widget
Camera
goes intoloading state
.So application doesn't seems like stuck.
cameraLoading.mp4