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

Showing a second toast before the previous one disappears makes it disappear too soon #32

Open
atn832 opened this issue Oct 24, 2022 · 1 comment

Comments

@atn832
Copy link

atn832 commented Oct 24, 2022

If I show a first toast for 5 seconds, then after 4 seconds show a second toast, then the second message gets shown only one second. Seems like there are two ways one could fix that:

@atn832
Copy link
Author

atn832 commented Oct 24, 2022

FlutterToast/lib/toast.dart

Lines 121 to 122 in 372fe04

await Future.delayed(Duration(seconds: duration ?? Toast.lengthShort));
dismiss();

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

1 participant