Answers for "alertdialog flutter content won't update"

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

Code answers related to "Dart"

Browse Popular Code Answers by Language