modal_progress_hud icon indicating copy to clipboard operation
modal_progress_hud copied to clipboard

dismissible attribute does not behave correctly

Open itlwy opened this issue 5 years ago • 2 comments

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

itlwy avatar Dec 06 '19 08:12 itlwy

Hey there,

Can you provide an example?

mmcc007 avatar Dec 06 '19 19:12 mmcc007

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, ], ); }`

itlwy avatar Dec 09 '19 03:12 itlwy