z_dialog

Creator: coderz1093

Last updated:

0 purchases

z_dialog Image
z_dialog Images

Languages

Categories

Add to Cart

Description:

z dialog

z_dialog #


z_dialog is a brief Dialog
Example #









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,
circular: 12,
options: ['Ring','Koa','Flutter'],
onClick: (i, value) {
Navigator.of(context).pop();
});

ZDialog.showCustomDialog(context,
title: 'Custom',
customWidget: Column(
children: [
Padding(
padding: const EdgeInsets.all(18.0),
child: Image.network(
'https://flutter.cn/asset/flutter-hero-laptop2.png'),
),
Text('Custom Widget')
],
),
actions: <Widget>[
ZButton(
isDark: true,
text: 'Ok',
onPressed: () {
Navigator.of(context).pop();
},
),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Padding(
padding: const EdgeInsets.only(left: 20, right: 20),
child: Text(
'Cancel',
style: TextStyle(color: Colors.grey),
),
))
]);
copied to clipboard
information #
z_dialog Much of the code references the Flutter Dialog

License

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

Files In This Product:

Customer Reviews

There are no reviews.