-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Auto poping pages #100
Comments
@Nabinda thanks for filling this issue I will check it |
+1, I've experienced same problem. |
For a workaround that works for now I did these 2 steps:
Will wait for the update, great package by the way. |
@Nabinda I've published a new version with a hot fix for this problem example:
|
check the 2.6.6 version |
Its bad to show a success toast while its still in loading phase so i believe this hot fix is still not that reliable |
@Nabinda the example I put is only to understand the modifications you can make in your code. |
I set When the App was running and the toast appeared, I tapped the screen before the MotionToast toast = MotionToast(
icon: Icons.zoom_out,
primaryColor: Color.fromARGB(225, 0, 0, 0),
secondaryColor: Colors.transparent,
backgroundType: BackgroundType.solid,
title: Text('Two ast\nToast\nToast\nToast\n\n\n', style: TextStyle(color: Colors.white),),
description: Text('Another ', style: TextStyle(color: Colors.white),),
borderRadius: 6,
barrierColor: Colors.black38,
constraints: BoxConstraints(
maxWidth: MediaQuery.of(context).size.width - 200,
minWidth: MediaQuery.of(context).size.width - 200,
maxHeight: MediaQuery.of(context).size.height - 200,
minHeight: MediaQuery.of(context).size.height - 200,
),
displaySideBar: false,
position: MotionToastPosition.center,
dismissable: true,
toastDuration: Duration(days: 1),
);
toast.show(context);
Future.delayed(Duration(seconds: 5)).then((value) {
toast.dismiss();
}); |
If I tap the screen and the toast dismisses, after that the App coincidentally run the plz take a look: #100 (comment) |
@olers checkout the newest version 2.6.7 I just fixed the issue |
It loos like Auto poping pages issue is still there am I wrong? I'm using latest version 2.6.7 |
@koukibadr tried again it's ok there is no old problem, thanks for hot fix |
@koukibadr I should say, this problem still persists, although rarely. To reproduce the issue: just tap fast and much when showing a motion toast. You will catch it. When it does this if nav stack has only one page user come across a blank and black screen, which is so bad for user experience. |
@codewithmustafa okay I will check it |
the issue 'page aotu pop' seems was fixed, but neither the Here is the code. MotionToast toast = MotionToast(
icon: Icons.zoom_out,
primaryColor: Color.fromARGB(225, 0, 0, 0),
secondaryColor: Colors.transparent,
backgroundType: BackgroundType.solid,
title: Text('Two ast\nToast\nToast\nToast\n\n\n', style: TextStyle(color: Colors.white),),
description: Text('Another ', style: TextStyle(color: Colors.white),),
borderRadius: 6,
barrierColor: Colors.black38,
constraints: BoxConstraints(
maxWidth: MediaQuery.of(context).size.width - 200,
minWidth: MediaQuery.of(context).size.width - 200,
maxHeight: MediaQuery.of(context).size.height - 200,
minHeight: MediaQuery.of(context).size.height - 200,
),
displaySideBar: false,
position: MotionToastPosition.center,
dismissable: true,
toastDuration: Duration(days: 1),
);
toast.show(context);
Future.delayed(Duration(seconds: 5)).then((value) {
toast.dismiss();
}); |
@koukibadr This is serious issue UX wise, facing the same thing what @codewithmustafa, If you can fix it properly, It would be really helpful. Thank You. |
When I show the toast message and navigate to another screen than it does navigate but after a few second toast message appear poping the screen taking me back from where i called toast
The text was updated successfully, but these errors were encountered: