This error always occurs when I pop the screen before its initialized.
To fix this you just need to check if the widget is still mounted.
You can find the setState in the file "flutter_zxing/src/ui/reader_widget.dart" in line 200, if it is true what the stacktrace says.
Error:
setState() called after dispose(): _ReaderWidgetState#c4ea6(lifecycle state: defunct, not mounted)
This error always occurs when I pop the screen before its initialized.
To fix this you just need to check if the widget is still mounted. You can find the setState in the file "flutter_zxing/src/ui/reader_widget.dart" in line 200, if it is true what the stacktrace says.
Error:
setState() called after dispose(): _ReaderWidgetState#c4ea6(lifecycle state: defunct, not mounted)
StackTrace: