parent
5183b0623b
commit
59544d4747
@ -0,0 +1,34 @@
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
class FireDialog {
|
||||
static Future fireAlert(String subTitle) async {
|
||||
await Get.dialog(
|
||||
CupertinoAlertDialog(
|
||||
title: Text('发现火灾!请立刻组织疏散人群!'),
|
||||
content: Column(
|
||||
children: [
|
||||
Text(subTitle),
|
||||
10.w.heightBox,
|
||||
Icon(
|
||||
CupertinoIcons.bell_fill,
|
||||
color: Colors.red,
|
||||
size: 48.w,
|
||||
),
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
CupertinoDialogAction(
|
||||
child: Text('确认'),
|
||||
onPressed: () => Get.back(),
|
||||
),
|
||||
],
|
||||
),
|
||||
barrierDismissible: false,
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue