fix alarm view

hmxc
小赖 4 years ago
parent 43487f9ce0
commit b5f28848db

@ -1,4 +1,6 @@
// Flutter imports:
import 'dart:ui';
import 'package:flutter/material.dart';
// Package imports:
@ -14,6 +16,7 @@ import 'package:aku_community_manager/tools/widget_tool.dart';
import 'package:aku_community_manager/ui/tool_pages/warning/warning_detail_page.dart';
import 'package:aku_community_manager/ui/tool_pages/warning/warning_sub_page.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:url_launcher/url_launcher.dart';
class WarningPage extends StatefulWidget {
WarningPage({Key key}) : super(key: key);
@ -61,23 +64,15 @@ class _WarningPageState extends State<WarningPage> {
///
Positioned(
top: 0,
left: 0,
right: 0,
child: Container(
margin: EdgeInsets.all(32.w),
decoration: BoxDecoration(
top: 32.w,
left: 32.w,
right: 32.w,
child: ClipRRect(
borderRadius: BorderRadius.circular(16.w),
color: Color(0xE8FFFFFF),
boxShadow: [
BoxShadow(
offset: Offset(0, 4.w),
blurRadius: 6.w,
spreadRadius: 4.w,
color: Color(0x1A5C5959),
),
],
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Container(
color: Color(0xAAFFFFFF),
padding: EdgeInsets.symmetric(
horizontal: 32.w,
vertical: 24.w,
@ -105,7 +100,6 @@ class _WarningPageState extends State<WarningPage> {
Expanded(
child: Text(
_location?.address ?? '加载中',
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: AppStyle.minorTextColor,
fontSize: 28.sp,
@ -118,6 +112,8 @@ class _WarningPageState extends State<WarningPage> {
),
),
),
),
),
///
Positioned(
@ -166,7 +162,8 @@ class _WarningPageState extends State<WarningPage> {
child: AkuCupertinoButton(
minWidth: 0,
onPressed: () {
Get.to(WarningSubPage());
launch('tel:110');
// Get.to(WarningSubPage());
},
child: Container(
height: 172.w,

Loading…
Cancel
Save