fix alarm view

hmxc
小赖 4 years ago
parent 43487f9ce0
commit b5f28848db

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

Loading…
Cancel
Save