Closed sentry-io[bot] closed 2 years ago
For what it's worth, there's a potential fix for the crash in SmoothProductCarousel
:
@override
void didChangeDependencies() {
super.didChangeDependencies();
final ContinuousScanModel model = context.watch<ContinuousScanModel>();
setState(() {
barcodes = model.getBarcodes();
});
if (_controller.ready) { // that's the fix
_controller.animateToPage(barcodes.length - 1 + _searchCardAdjustment);
}
}
With that, no crash. Will the animation take place eventually: I don't know. Unfortunately I cannot really test that because 1. my smartphone is too old to use https queries (at least with smoothie) and 2. with the emulators I haven't tested how to scan (and anyway my computer is already slow enough).
Sentry Issue: SMOOTHIE-ANDROID-JQ
What
Part of