v1.0.0+2
platform_alert_dialog
適用於目前平台的 Flutter 外掛程式,用於建立提示對話方塊。
17喜歡 4近 30 天下載40Pub 分數
平台暫無資料
適用於目前平台的 Flutter 外掛程式,用於建立提示對話方塊。
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter plugin for build alert dialogs adapted to the current platform.
showDialog<void>(
context: context,
builder: (BuildContext context) {
return PlatformAlertDialog(
title: Text('Rewind and remember'),
content: SingleChildScrollView(
child: ListBody(
children: <Widget>[
Text('You will never be satisfied.'),
Text('You\’re like me. I’m never satisfied.'),
],
),
),
actions: <Widget>[
PlatformDialogAction(
child: Text('Cancel'),
onPressed: () {
Navigator.of(context).pop();
},
),
PlatformDialogAction(
child: Text('Regret'),
actionType: ActionType.Preferred,
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
| Screenshot with theme Android | Screenshot with theme iOs |
|---|---|
![]() |
![]() |
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗