Questions tagged [flutter-alertdialog]

For questions relating to Flutter's AlertDialog class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.

Reference:

157 questions
0
votes
0 answers

Show dialog when drawer is pressed

I am trying to make an alert dialog box when drawer is pressed, but don't know why it doesn't work. drawer: Drawer( child: Column( children: [ DrawerHeader( decoration: BoxDecoration( …
0
votes
1 answer

I want to make setState ListView alert dialog

Hello I am working on a multiple choice select. List contacts = [ ContactModel("Tüm ilanları göster", false), ContactModel("En çok puan alan", false), ContactModel("En çok teklif alan", false), ContactModel("En az…
0
votes
1 answer

Where to place alertbox in flutter?

I have a flutter app that uses flask as backend and when ever some data changes in the backend, I want to send an Alert Dialog to user. Although I know how to use Alert Box, I'm confused where the code for it should be placed as I'm using 3 screens…
0
votes
1 answer

How can I stop the background screen is moving to another screen while alert box appears?

I'm using 4 images in each screen. By setting the timer I can see the screen changing within 4 seconds automatically. In each screen below I have given a button for alter dialog box. When I click on button it will show the alert dialog box, the…
0
votes
1 answer

Flutter Separating logic from UI Without Context

I'm new to flutter and i've been working on an app and trying to implement the MVVM architecture to separate the logic from the UI. I'm using the provider as state management and it's working fine with notifying the new data. but I have two major…
0
votes
1 answer

How can I pop a flutter cool alert dialog

I have a class that returns a button to delete a post and i added coolalert package for confirmation popup, but everytime i click on 'Yes" it pops all my home page instead of the popup and the popup dialog still remains on screen. Is there something…
0
votes
1 answer

Flutter: Alert Dialog with CupertinoNavigationBar back button

Flutter Question: I am trying to implement an alert dialog on my Cupertino Navigation bar back button when pressed, but I think I have no idea how this would work when I'm not using a custom back button. Does anyone have an idea? class ameriCares…
Saheed
  • 301
  • 1
  • 2
  • 11
0
votes
0 answers

Dialog shows up several times (Does FirebaseDynamicLinks.instance.onLink.listen stay in memory after AppLifecycleState.paused/inactive in flutter?)

I have "Email link sign-in (Passwordless)" in my app. It works as expected. But there is one issue that the catchError on _auth.signInWithEmailLink(email: userEmail, emailLink: link.toString()) is called several times (e.g. if I go to my email, use…
0
votes
2 answers

Flutter Alert once per session

I have a payment due alert in my application. It opens up on init of homepage. What my objective is to open the alert only once when the app opens up. I don't want to show that alert again when the user comeback to home screen. How can I achieve…
Febin Johnson
  • 277
  • 1
  • 6
  • 21
0
votes
1 answer

Flutter CupertinoAlertDialog widget error

I'm trying to use CupertinoAlertDialog on my profile page. It works just fine on my other page, but not the profile page. Here is my code: showCupertinoModalPopup( context: context, builder: (context) => CupertinoActionSheet( actions: [ …
aufa
  • 273
  • 3
  • 15
0
votes
1 answer

Flutter: How to change variables through TextFormField in a AlertDialog?

I want to implement a function as following: There is a button named 自定义. In this page, there is a variable named money. When I click the button, an AlertDialog with a TextFormField inside will occur. I hope that after inputting a number X into the…
0
votes
1 answer

Calling widget from another widget with onPressed event in flutter to open alertDialog

I'm building a generalised flutter widget based on the flutter alertDialog, I want to have this as a separate widget which can be called with onPressed method in other widgets. Currently the alertDialog opens with the onPressed method which is part…
Nikhil Bharadwaj
  • 867
  • 4
  • 24
  • 42
0
votes
1 answer

AlertDialog with a CheckboxListTile in flutter

I'm having some problems when I use a CheckboxListTile inside a AlertDialog. The problem is that when I try to check, the box doesn't work correctly. This is my code: import 'package:flutter/material.dart'; void main() { …
zorro68
  • 5
  • 3
0
votes
1 answer

flutter alertdialog with background image

Folloing is my alert dialog box code, i need to set an background image for the alert dialog instead of blue color, need to show a design AlertDialog( backgroundColor: Colors.blue, titlePadding:…
Siva K
  • 4,968
  • 14
  • 82
  • 161
0
votes
1 answer

Cannot fire alterdialog inside onMessage FCM

The idea is that when the app is in foreground, I want to show an alert dialog and when the user presses the okay button from the dialog, it navigates them to a different screen. However, the alterdialog does not appear. If I remove the alertdialog…
mcfred
  • 1,183
  • 2
  • 29
  • 68