fix: dispose of media controller

This commit is contained in:
alzalia1 2025-08-13 14:26:26 +02:00
parent 6c6f0da1ae
commit 6d77a02b72
2 changed files with 18 additions and 5 deletions

View file

@ -18,6 +18,13 @@ class _ScanScreenState extends State<ScanScreen> {
formats: [BarcodeFormat.ean13],
detectionTimeoutMs: 1000,
);
@override
void dispose() {
controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);