Skip to content

Commit

Permalink
fix: clear text and barcode detection callbacks on view disposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricCookie committed Feb 10, 2025
1 parent d984af7 commit aaed331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/barcode_kit_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ class _BarcodeKitViewState extends State<BarcodeKitView>
void dispose() {
_barcodeKitPlugin
..closeCamera()
..onTextDetectedCallback = null
..onBarcodeScannedCallback = null;
_animationController.dispose();
super.dispose();
Expand Down

0 comments on commit aaed331

Please sign in to comment.