Code Monkey home page Code Monkey logo

Comments (9)

emanuel-braz avatar emanuel-braz commented on June 7, 2024

Hi @anhkhoi159 can you provide some minimal reproducible code?

Instead OneContext().popDialogs(), use OneContext().popDialog()

dialogs.mov

from one_context.

khoitqa avatar khoitqa commented on June 7, 2024

I tried to use it, but it did not work. Can you help me check my issue?
image

from one_context.

emanuel-braz avatar emanuel-braz commented on June 7, 2024

@anhkhoi159 I gonna check this out, but if you want to lock the screen while something is loading, it might make more sense to use overlays

// Show a custom progress indicator
OneContext().showProgressIndicator(
    builder: (_) => MyAwesomeProgressIndicator(); // You can use your custom progress indicator here!
);

// Later
OneContext().hideProgressIndicator();

from one_context.

khoitqa avatar khoitqa commented on June 7, 2024

@anhkhoi159 I gonna check this out, but if you want to lock the screen while something is loading, it might make more sense to use overlays

// Show a custom progress indicator
OneContext().showProgressIndicator(
    builder: (_) => MyAwesomeProgressIndicator();
);

// Later
OneContext().hideProgressIndicator();

@emanuel-braz if I use overlays, I cannot show loading when any dialog is showing. can you help me check my case?.

from one_context.

emanuel-braz avatar emanuel-braz commented on June 7, 2024

@anhkhoi159 have you ever tried without WillPopScope?

you can use the barrierDismissible: false to avoid close dialogs when outside touch

from one_context.

khoitqa avatar khoitqa commented on June 7, 2024

@anhkhoi159 have you ever tried without WillPopScope?

you can use the barrierDismissible: false to avoid close dialogs when outside touch

@emanuel-braz
without WillPopScope has the same result. When I use show showProgressIndicator, the loading is behind my dialog ? can u help me check

from one_context.

emanuel-braz avatar emanuel-braz commented on June 7, 2024

@anhkhoi159 have you ever tried without WillPopScope?
you can use the barrierDismissible: false to avoid close dialogs when outside touch

@emanuel-braz without WillPopScope has the same result. When I use show showProgressIndicator, the loading is behind my dialog ? can u help me check

I don't understand, the overlay is not behind dialogs, can you provide a video?
Screen Shot 2022-07-18 at 11 47 28

from one_context.

khoitqa avatar khoitqa commented on June 7, 2024
Screen.Recording.2022-07-19.at.09.14.15.mov

@emanuel-braz can you help me check, my overlay is behind my dialog.

from one_context.

emanuel-braz avatar emanuel-braz commented on June 7, 2024

Hello I tried to reproduce this behavior, without success :(
Can you provide a reproducible code?

from one_context.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.