AlertDialog
当应用程序进行重要操作时经常需要用户进行2次确认,以避免用户的误操作,比如删除文件时,一般会弹出提示“是否要删除当前文件”,用户点击确认后才会进行删除操作,这时我们可以使用提示框(AlertDialog或者CupertinoAlertDialog)。
根据设计的不同,我们可以选择Material风格的AlertDialog或者Cupe……继续阅读 »
3个月前 (01-08) 105浏览 0评论
0个赞
AboutListTile
用法如下:
AboutListTile()
效果如下:
什么也没有设置,怎么会出现“About 老孟”?AboutListTile组件的child参数,默认显示About+应用程序的名称。
设置child参数:
AboutListTile(
child: Text('About 老孟程序员'),
)
效果如下……继续阅读 »
3个月前 (01-05) 86浏览 0评论
0个赞
AboutDialog
AboutDialog用于描述当前App信息,底部提供2个按钮:查看许可按钮和关闭按钮。AboutDialog需要和showAboutDialog配合使用,用法如下:
showAboutDialog(
context: context,
applicationIcon: Image.asset(
'images……继续阅读 »
3个月前 (01-05) 81浏览 0评论
0个赞