ContextExtra extension
为BuildContext添加的对话框扩展方法
- on
Methods
-
showAlert(
{required String title, String subTitle = '', Color titleColor = Colors.black, Color subTitleColor = Colors.grey, double titleFontSize = 20, double subTitleFontSize = 16, required List< DialogAction> actions, bool barrierDismissible = true}) → Future -
Available on BuildContext, provided by the ContextExtra extension
显示通用对话框 -
showSnack(
Widget child, {Color color = Colors.grey}) → void -
Available on BuildContext, provided by the ContextExtra extension
显示SnackBar提示 -
showSnackTitle(
String title, {Color color = Colors.grey}) → void -
Available on BuildContext, provided by the ContextExtra extension
显示纯文本SnackBar提示