koukibadr / Cherry-Toast

https://pub.dev/packages/cherry_toast
MIT License
22 stars 16 forks source link

Fix #30 : add postframecallback fix to main widget #31

Closed koukibadr closed 1 year ago

koukibadr commented 1 year ago

Issue When initializing the main widgt we use addPostFrameCallback on a potential nullable WidgetBinding.instance with Flutter versions previous to Flutter 3 this can make a problem

Fix Add ambiguate callback to check on the nullable object WidgetBinding.instance