joshuadeguzman/flutter_dialogs
💬 एक हल्का और प्लेटफॉर्म-संवेदनशील प्लगइन जो एंड्रॉइड और आईओएस डिवाइस के लिए डायलॉग और अलर्ट दिखाता है।
- Stars
- 14
- Forks
- 5
- अंतिम पुश (UTC)
- 24 जुल॰ 2022
- प्रोजेक्ट स्थिति
- सक्रिय
भाषाएँC++CMakeDartHTMLCSwiftShellRubyKotlinObjective-C
तकनीकी विषय
उपयोग की गई निर्भरताएँ
निर्भरता सूची 2 आइटम
- flutter
{"sdk":"flutter"} - flutter_testडेवलपमेंट
{"sdk":"flutter"}
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
README खोलें / बंद करें
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);
},
),
],
),
);
Output
| iOS | Android |
|---|---|
| ios-basic-dialog-alert | android-basic-dialog-alert |
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);
},
),
],
),
);
Output
| iOS | Android |
|---|---|
| ios-basic-dialog-confirmation | android-basic-dialog-confirmation |
Sample List
showPlatformDialog(
context: context,
builder: (context) => BasicDialogAlert(
title: Text("Select account"),
content: Container(
height: 200,
child: ListView(
children: <Widget>[
_buildListSampleItem("joshua@joshuamdeguzman.com"),
_buildListSampleItem("hello@gmail.com"),
_buildListSampleItem("joshua@flutter.ph"),
_buildListSampleItem("jdeguzman@freelancer.com"),
],
),
),
actions: <Widget>[
BasicDialogAction(
title: Text("Cancel"),
onPressed: () {
Navigator.pop(context);
},
),
],
),
);
Output
| iOS | Android |
|---|---|
| ios-basic-dialog-list | android-basic-dialog-list |
License
MIT @joshuadeguzman