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

dismissible attribute does not behave correctly #28

Open
itlwy opened this issue Dec 6, 2019 · 2 comments
Open

dismissible attribute does not behave correctly #28

itlwy opened this issue Dec 6, 2019 · 2 comments
Labels
good first issue Good for newcomers

Comments

@itlwy
Copy link

itlwy commented Dec 6, 2019

hi:
I'm using your library,but i found the dismissible attribute does not behave correctly.
I see that you use ModalBarrier widget,when set the dismissible as true,it will call Navigator.pop,but i think it should disappear the mask instead of pop

@mmcc007
Copy link
Owner

mmcc007 commented Dec 6, 2019

Hey there,

Can you provide an example?

@mmcc007 mmcc007 added the good first issue Good for newcomers label Dec 6, 2019
@itlwy
Copy link
Author

itlwy commented Dec 9, 2019

look at "new Modalbarrier(dismissible: dismissible, ...)" of ModalProgressHUD class.
when set dismissible as true,it will trigger Navigator.pop instead of disappearing the loading mask

`@override

Widget build(BuildContext context) {
...
return new Stack(
children: [
child,
new Opacity(
child: new ModalBarrier(dismissible: dismissible, color: color),
opacity: opacity,
),
layOutProgressIndicator,
],
);
}`

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

No branches or pull requests

2 participants