Closed sentry-io[bot] closed 2 years ago
Suggestion in SmoothProductCarousel
(I cannot test the camera on my emulator, I cannot test the https API calls on my old smartphone) (but I've checked that at init, with an empty carousel, the error message is not there anymore):
@override
void didChangeDependencies() {
super.didChangeDependencies();
final ContinuousScanModel model = context.watch<ContinuousScanModel>();
setState(() {
barcodes = model.getBarcodes();
});
if (barcodes.isEmpty) { // what would animation mean with an empty list?
return;
}
_controller.animateToPage(barcodes.length - 1 + _searchCardAdjustment);
}
Fixed
Sentry Issue: SMOOTHIE-S0