CaiJingLong / flutter_load_widget

Apache License 2.0
35 stars 13 forks source link

Loading overlay - dismissable at tap #2

Closed IrvingArmenta-ML closed 5 years ago

IrvingArmenta-ML commented 5 years ago

I noticed that the loading overlay can be dismissable at tap, which I don't think should be the default behavior, Users should not be able to dismiss the loading state (loading screen).

Is there an option for it, like in showDialog() ?

showDialog(
    context: context,
    barrierDismissible: false,
   // others args...
  );
CaiJingLong commented 5 years ago

OK, I will add a param to support it.

CaiJingLong commented 5 years ago

https://github.com/CaiJingLong/flutter_load_widget/blob/14910c88942a608e6226f05999db4f021f3e8893/example/lib/main.dart#L5-L14

Set tapDismiss: false can make every dialog can not click to disappear.

And, I will add a parameter to make each dialog can be set to close separately.

CaiJingLong commented 5 years ago

Update version to 0.1.4.