Issue I am new to flutter and I am trying to learn the platform. So, here I am trying to display information from jsonplaceholder onto a alertdialog while is activated when a button is pressed in main.dart(I haven’t included the
Continue readingTag: flutter-alertdialog
Flutter – Handle onChanged() to double in TextFormField
Issue in a "AlertDialog-Form" I want to use a ValueChanged callback for a double Variable. Using it in a TextFormField makes the error The argument type ‘void Function(double)’ can’t be assigned to the parameter type ‘void Function(String)?’. How to return
Continue readingFlutter cupertinoPicker value not changing
Issue I’m trying to use CupertinoPicker on a AlertDialog widget but the values are do not change. The same code work when it’s not the AlertDialog widget. What’s happening? Button to press to show AlertDialog: ElevatedButton( onPressed: () { showDialog(
Continue readingThe function of showDialog is not showing alertDialog on the onPressed method in Flutter when trying to press the on pressed function
Issue This is the ShowDialog function that i have created but the problem doesn’t seem to be understable to me as i think i have made it quite right. showAlertDialog({ required BuildContext context, required String message, String? btnText, }) {
Continue readingHow to detect if an AlertDialog was dismissed by tapping outside its barrier or by a button callback in Flutter?
Issue There are 3 ways the AlertDialog can be dismissed (in my example): Tapping outside its barrier. (‘to cancel’) Tapping a button A which will call pop(). (‘to proceed’) Tapping a button B which will call pop(). (to ‘cancel’) I
Continue readingHow to create an Alert Dialogue with selecting values of no. of days, hours and minutes in flutter?
Issue I am new to flutter, I knew very basic about flutter. I am trying to set a timer in my app, I want user to select number of days, hours and minutes. And it should be of a maximum
Continue readingDo something before leaving page using navigation drawer menu icon
Issue In Fluter, I have some pages with an AppBar that shows the menu icon of the navigation drawer that it is used to navigate among distinct pages. Some of this pages allow the user to edit some data. So,
Continue readingThe return type 'String' isn't a 'void', as required by the closure's context
Issue I’m trying to create a function which shows a AlertDialog with a text form field. user will enter a value into this field and then will push the "ok" button. I want to return entered string value when the
Continue readingAlert sound with AlertDialog in Flutter
Issue below code is just to show AlertDialog when button is clicked in flutter and I’m searching the way to trigger device’s alert sound when alert dialog pops up for both Android and iOS. I tried search pub.dev for package
Continue readingWhy the screen becomes dark when an alert was displaying with flutter?
Issue I don’t know why the screen becomes dark when I try to use the alert on initState() in my flutter application. This is the code : if (element.isCharacteristic42) { Scaffold: (showDialog( context: context, builder: (context) { return AlertDialog( title:
Continue reading