We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to cancel the toast everytime I press the key.
But it works only on the 1st time, next toasts are not cancelled:
code:
@override void initState() { super.initState(); nameTextController = TextEditingController() ..addListener(() async { if (nameTextController.text.length > 40) { await Fluttertoast.cancel(); Fluttertoast.showToast(msg: 'Max 40 characters').ignore(); } }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to cancel the toast everytime I press the key.
But it works only on the 1st time, next toasts are not cancelled:
bad.toast.video_2024-06-19_15-02-19.mp4
code:
The text was updated successfully, but these errors were encountered: