Buckets:
| import 'package:flutter/material.dart'; | |
| void showErrorDialog(String message, context) { | |
| showDialog( | |
| context: context, | |
| builder: (BuildContext context) { | |
| return AlertDialog( | |
| title: const Text('Error'), | |
| content: Text(message), | |
| actions: <Widget>[ | |
| TextButton( | |
| child: const Text('Ok'), | |
| onPressed: () { | |
| Navigator.of(context).pop(); | |
| }, | |
| ) | |
| ], | |
| ); | |
| }, | |
| ); | |
| } | |
| Future showErrorDialogFuture(String message, BuildContext context, {VoidCallback? onDismiss}) async { await showDialog( context: context, builder: (BuildContext ctx) { return AlertDialog( title: const Text('Error'), content: Text(message), actions: [ TextButton( child: const Text('Ok'), onPressed: () { Navigator.of(ctx).pop(); }, ), ], ); }, ); if (onDismiss != null) onDismiss(); } |
Xet Storage Details
- Size:
- 918 Bytes
- Xet hash:
- ce66acd0810d39dfa1a6c9b6aaffc80dbb3e9984ea51b10dc9a01c9ad3835135
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.