z_dialog 1.0.1
z_dialog: ^1.0.1 copied to clipboard
A new Flutter dialog package.
z_dialog #
z_dialog is a brief Dialog
Example #
Getting started #
dependencies:
z_dialog: ^1.0.0
Usage #
to /example folder.
ZDialog.showAlert(context,
title: 'Flutter',
content:
'Flutter is Google UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase.',
actions: <Widget>[
ZButton(
isDark: true,
text: '确定',
onPressed: () {
Navigator.of(context).pop();
},
),
ZButton(
isDark: false,
text: '取消',
onPressed: () {
Navigator.of(context).pop();
},
),
]);
ZAlert.showBottomDialog(context, options: ['Ring','Koa','Flutter'],
onClick: (i, value) {
Navigator.of(context).pop();
});
information #
z_dialog Much of the code references the Flutter Dialog