flutter_dialogs

Last updated:

0 purchases

flutter_dialogs Image
flutter_dialogs Images
Add to Cart

Description:

flutter dialogs

flutter_dialogs #
A lightweight and platform-aware plugin for showing dialogs and alerts for both Android and iOS devices. Supports null-safety and Flutter 2.0.
Features #

Platform aware
Extendable widgets
Lightweight < 28 KB

Usage #
Sample Alert
showPlatformDialog(
context: context,
builder: (context) => BasicDialogAlert(
title: Text("Current Location Not Available"),
content:
Text("Your current location cannot be determined at this time."),
actions: <Widget>[
BasicDialogAction(
title: Text("OK"),
onPressed: () {
Navigator.pop(context);
},
),
],
),
);
copied to clipboard
Output



iOS
Android









Sample Confirmation
showPlatformDialog(
context: context,
builder: (context) => BasicDialogAlert(
title: Text("Discard draft?"),
content: Text("Action cannot be undone."),
actions: <Widget>[
BasicDialogAction(
title: Text("Cancel"),
onPressed: () {
Navigator.pop(context);
},
),
BasicDialogAction(
title: Text("Discard"),
onPressed: () {
Navigator.pop(context);
},
),
],
),
);
copied to clipboard
Output



iOS
Android









Sample List
showPlatformDialog(
context: context,
builder: (context) => BasicDialogAlert(
title: Text("Select account"),
content: Container(
height: 200,
child: ListView(
children: <Widget>[
_buildListSampleItem("[email protected]"),
_buildListSampleItem("[email protected]"),
_buildListSampleItem("[email protected]"),
_buildListSampleItem("[email protected]"),
],
),
),
actions: <Widget>[
BasicDialogAction(
title: Text("Cancel"),
onPressed: () {
Navigator.pop(context);
},
),
],
),
);
copied to clipboard
Output



iOS
Android









License #
MIT @joshuadeguzman

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.