Dialog
官方提供的dialog,这里就不介绍了,这里主要介绍我在工作中自定义的一些dialog;
中间弹窗
效果图:
- dialog代码:
class SearchDeleteDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
return IntrinsicHeight(
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.only(top: 60.0, bottom: 38.0),
child: Text(
ZSBStrings.confirm_delete,
style: TextStyle(fontSize: ScreenUtil().setSp(40.0)),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
_button(ZSBStrings.confirm, context, () {
Provider.of<ZSBHomeProvider>(context).clearHistory();