pageErrorDialog method

  1. @Doc(message: "显示一个error类型弹窗")
void pageErrorDialog(
  1. String msg
)

Implementation

@Doc(message: "显示一个error类型弹窗")
void pageErrorDialog(String msg){
  SmartDialog.dismiss(tag: "error-dialog");
  SmartDialog.show(builder: (context){
    return AlertDialog(
      content: SingleChildScrollView(child: Column(
        children: [
          const Center(
            child: Icon(Icons.error,color: Colors.red,),
          ),
          const SizedBox(height: 12,),
          Text(msg),
        ],
      )),
    );
  },tag: "error-dialog");
}