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

If i tap while loading, the app go back #5

Closed
christianarduino opened this issue May 13, 2020 · 11 comments
Closed

If i tap while loading, the app go back #5

christianarduino opened this issue May 13, 2020 · 11 comments

Comments

@christianarduino
Copy link

If the ProgressHUD widget is showing the circular progress indicator, when I tap on it, the app go back

@Jaimin9998
Copy link

i am also facing the same issue. is there any solution of this?

@tamhv
Copy link

tamhv commented Aug 25, 2021

me too

@franciscrispin
Copy link
Contributor

#9 should fix this issue.

@glintpursuit
Copy link

I am facing this issue for current version flutter_progress_hud: ^2.0.0

screen is dismissed when click on ProgressBar.

@glintpursuit
Copy link

@tamhv

How did you fix it?

@tamhv
Copy link

tamhv commented Feb 24, 2022

@glintpursuit pls try dismissible: false for ModalBarrier

@override
Widget build(BuildContext context) {
    final children = <Widget>[];
    if (widget.barrierEnabled) {
      children.add(
        Visibility(
          visible: _barrierVisible,
          child: ModalBarrier(
            dismissible: false,
            color: widget.barrierColor,
          ),
        ),
      );
    }
   ...
}

@glintpursuit
Copy link

glintpursuit commented Feb 24, 2022

Thanks for quick response @tamhv

This change will be in package file right ?

@tamhv
Copy link

tamhv commented Feb 24, 2022

yeah this file

@glintpursuit
Copy link

Thanks @tamhv

I am wondering how to take care of this change in Build process (CI/CD)

@tamhv
Copy link

tamhv commented Feb 24, 2022

@glintpursuit you need to fork this repo, edit and commit your customize code, add your fork to pubspec.yaml

dependencies:
  widget:
    git: git@github.com:blabla/flutter_progress_hud.git

or you can download file flutter_progress_hud.dart to your project, edit and use it directly in your project

@glintpursuit
Copy link

Cool.

If I don't get better modal progress bar (till now no) then I will add this file to my project.

Thanks for all help @tamhv

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

No branches or pull requests

6 participants