Closed orangeyong closed 7 months ago
When pop/closing the page with the CreditCardWidget, my Crashlytics is able to catch this error.
flutter: Bad state: Cannot add new events after calling close flutter:
To Reproduce Steps to reproduce the behavior:
Expected behavior close the stream properly on dispose, maybe we need a controller to call for inside dispose?
When pop/closing the page with the CreditCardWidget, my Crashlytics is able to catch this error.
flutter: Bad state: Cannot add new events after calling close flutter:
0 _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:243:24)
1 _CreditCardWidgetState._processFloatingEvent (package:flutter_credit_card/src/credit_card_widget.dart:366:24)
2 _rootRunUnary (dart:async/zone.dart:1407:47)
To Reproduce Steps to reproduce the behavior:
Expected behavior close the stream properly on dispose, maybe we need a controller to call for inside dispose?