dismissible attribute does not behave correctly
itlwy opened this issue · 2 comments
itlwy commented
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 commented
Hey there,
Can you provide an example?
itlwy commented
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,
],
);
}`