Answers for "showgeneraldialog flutter"

4

showdialog with builder flutter

showDialog(
        context: context,
        builder: (BuildContext context) => new AlertDialog(
          title: new Text('Warning'),
          content: new Text('Hi this is Flutter Alert Dialog'),
          actions: <Widget>[
            new IconButton(
                icon: new Icon(Icons.close),
                onPressed: () {
                  Navigator.pop(context);
                })
          ],
        ));
Posted by: Guest on November-02-2020
7

flutter alertdialog padding

titlePadding: const EdgeInsets.only(top: 24.0, left: 24.0, right: 24.0),
contentPadding: const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
actionsPadding: const EdgeInsets.all(0.0), // Padding around the set of actions at the bottom of the dialog.
buttonPadding: const EdgeInsets.all(8.0), // The padding that surrounds each button in actions.
insetPadding: const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0),
Posted by: Guest on August-22-2021
8

flutter alertdialog

AlertDialog(
          title: const Text('AlertDialog Title'),
          content: const Text('this is a demo alert diolog'),
          actions: <Widget>[
            TextButton(
              child: const Text('Approve'),
              onPressed: () { 
              	Navigator.of(context).pop();
              },
            ),
          ],
        );
Posted by: Guest on August-22-2021
0

alertdialog padding flutter

contentPadding: EdgeInsets.zero,
Posted by: Guest on August-07-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language