info static method

Future<void> info(
  1. BuildContext context,
  2. String message, {
  3. String title = '详情',
})

信息对话框

Implementation

static Future<void> info(
  BuildContext context,
  String message, {
  String title = '详情',
}) {
  return show(
    context,
    type: NZDialogType.info,
    title: title,
    message: message,
    icon: Icons.info_rounded,
    iconColor: Colors.blue,
    actions: [
      NZDialogAction(label: '关闭', onPressed: () => Navigator.pop(context)),
    ],
  );
}