GithubHelp home page GithubHelp logo

Comments (6)

irfan0429 avatar irfan0429 commented on May 26, 2024 3

Hello, If I use Navigator.pop(context); it will get me back from that screen, but if I want to stay on same page?

from flutter_cool_alert.

emrade avatar emrade commented on May 26, 2024 2

from flutter_cool_alert.

emrade avatar emrade commented on May 26, 2024

No it won't close the page. If you have the dialog open and you trigger a Navigator.pop, the dialog closes and not the page.

from flutter_cool_alert.

emrade avatar emrade commented on May 26, 2024

Hi, if you want to close the dialog you'd have to handle that yourself. All you need to do is call Navigator.pop(context);

On Fri, 11 Dec 2020, 5:21 am Irfan Akram, @.***> wrote: Dialog doesn't close when we use to tap "onConfirmBtnTap". CoolAlert.show( context: context, type: CoolAlertType.success, text: responseData['msg'], onConfirmBtnTap: ( ){ ... } } And How to hide the "loading" dialog automatically? CoolAlert.show( context: context, type: CoolAlertType.loading, ); — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAMVZUJND3U67SJZRB2IODSUGT5FANCNFSM4UWCIR5A .

@webmasterscity i dunno why you would give a thumbs down to my answer but it's common knowledge that to close a dialog, all you have to do is pop it.

You can refer to this article @irfan0429 @webmasterscity

https://stackoverflow.com/questions/50683524/how-to-dismiss-flutter-dialog

from flutter_cool_alert.

ankushmishra2903-official avatar ankushmishra2903-official commented on May 26, 2024

Hi, if you want to close the dialog you'd have to handle that yourself. All you need to do is call Navigator.pop(context);

On Fri, 11 Dec 2020, 5:21 am Irfan Akram, @.***> wrote: Dialog doesn't close when we use to tap "onConfirmBtnTap". CoolAlert.show( context: context, type: CoolAlertType.success, text: responseData['msg'], onConfirmBtnTap: ( ){ ... } } And How to hide the "loading" dialog automatically? CoolAlert.show( context: context, type: CoolAlertType.loading, ); — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAMVZUJND3U67SJZRB2IODSUGT5FANCNFSM4UWCIR5A .

@webmasterscity i dunno why you would give a thumbs down to my answer but it's common knowledge that to close a dialog, all you have to do is pop it.

You can refer to this article @irfan0429 @webmasterscity

https://stackoverflow.com/questions/50683524/how-to-dismiss-flutter-dialog

yes but i am using cool_alert: ^1.1.0 and I am trying in onConfirmBtnTap as when you click on btn than it goes to another page but in cool_alert it will redirect to new page but not close the dialog and when i use Navigator.pop(context); on before redirect but same not close and when i use it after redirect and it redirect and came in same page

from flutter_cool_alert.

Ruslanbek0809 avatar Ruslanbek0809 commented on May 26, 2024

Instead of Navigator.pop(context);, try this Navigator.of(context, rootNavigator: true).pop(); This solves custom back button press issue

from flutter_cool_alert.

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.