Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: The method 'insert' was called on null. #23

Open
FarsFuad opened this issue Jul 4, 2020 · 2 comments
Open

NoSuchMethodError: The method 'insert' was called on null. #23

FarsFuad opened this issue Jul 4, 2020 · 2 comments

Comments

@FarsFuad
Copy link

FarsFuad commented Jul 4, 2020

My code is very simple and I'm still getting an error :

void initState() {
super.initState();
Toast.show("Toast plugin app", context, duration: Toast.LENGTH_SHORT, gravity: Toast.BOTTOM);
}

error :

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'insert' was called on null. E/flutter ( 2653): Receiver: null E/flutter ( 2653): Tried calling: insert(Instance of 'OverlayEntry')

@laoge-lol
Copy link

me too

@FarsFuad
Copy link
Author

FarsFuad commented Jul 9, 2020

me too

change the package , i used flutter toast pug

here is the link :

https://pub.dev/packages/fluttertoast#-installing-tab-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants