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

dismissOnTap: true , has no effect #94

Closed
guyulmaz opened this issue Mar 18, 2021 · 10 comments
Closed

dismissOnTap: true , has no effect #94

guyulmaz opened this issue Mar 18, 2021 · 10 comments

Comments

@guyulmaz
Copy link

Describe the bug
flutter_easyloading: ^3.0.0

EasyLoading.showToast(mesaj,
toastPosition: EasyLoadingToastPosition.center,
dismissOnTap: true,
duration: Duration(seconds: 5));

but toast is disappearing without requesting any tap.

Flutter/Dart info
please run flutter doctor then put it here.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 2.0.1, on Microsoft Windows [Version 10.0.19041.867], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.1)
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.54.3)
[√] Connected device (3 available)

• No issues found!

Screenshots
If applicable, add screenshots to help explain your problem.

@github-actions
Copy link

Thanks for taking the time to open an issue. I will have a look and answer as soon as possible.

@nslogx
Copy link
Owner

nslogx commented Mar 19, 2021

@guyulmaz dismissOnTap is meaning that when toast is showing and will dismiss with tap on screen

@guyulmaz
Copy link
Author

the problem without making any tap on the screen, toast is disappearing

@nslogx
Copy link
Owner

nslogx commented Mar 22, 2021

when you set duration: Duration(seconds: 5), toast will dissmiss after 5 seconds.
you mean, toast disappeared before 5 seconds?

@guyulmaz
Copy link
Author

EasyLoading.showToast(
mesaj,
toastPosition: EasyLoadingToastPosition.center,
dismissOnTap: true,
//duration: Duration(seconds: 5)
);
toast disappear without any tap even dismissOnTap: true

@nslogx
Copy link
Owner

nslogx commented Mar 22, 2021

@guyulmaz okay, what you want is that you wish Toast will be always showing until call EasyLoading.dismiss()?

@guyulmaz
Copy link
Author

Toast will be always showing until user taps
isn't dismissOnTap: true is for this, why is it not working?

@nslogx
Copy link
Owner

nslogx commented Mar 22, 2021

dismissOnTap: true is meaing that when toast/loading is showing, toast/loading will dismiss immediately on user tap...

@guyulmaz
Copy link
Author

yes problem is it dismiss without any user tap

@nslogx
Copy link
Owner

nslogx commented Mar 22, 2021

you can keep toast always showing by set duration with large value...

@nslogx nslogx closed this as completed Mar 22, 2021
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