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 ↗