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

Loading overlay - dismissable at tap #2

Closed
IrvingArmenta-ML opened this issue Jul 10, 2019 · 3 comments
Closed

Loading overlay - dismissable at tap #2

IrvingArmenta-ML opened this issue Jul 10, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@IrvingArmenta-ML
Copy link

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
Copy link
Owner

OK, I will add a param to support it.

@CaiJingLong CaiJingLong added the enhancement New feature or request label Jul 10, 2019
@CaiJingLong
Copy link
Owner

void main() {
runApp(
LoadingProvider(
themeData: LoadingThemeData(
// tapDismiss: false,
),
child: MyApp(),
),
);
}

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
Copy link
Owner

Update version to 0.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants