|
|
@ -1,4 +1,5 @@ |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
|
|
|
import 'package:flutter/services.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
|
|
|
|
|
|
@ -42,7 +43,11 @@ class _HomeSideslipDialog extends State<HomeSideslipDialog> with SingleTickerPro |
|
|
|
return SlideTransition(position: _animation, |
|
|
|
return SlideTransition(position: _animation, |
|
|
|
child: WillPopScope( |
|
|
|
child: WillPopScope( |
|
|
|
///点击背景不收起弹窗; |
|
|
|
///点击背景不收起弹窗; |
|
|
|
// onWillPop: () async => false, |
|
|
|
onWillPop: () async { |
|
|
|
|
|
|
|
SystemChrome.setSystemUIOverlayStyle( |
|
|
|
|
|
|
|
SystemUiOverlayStyle(statusBarColor: Colors.transparent)); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
width: double.infinity, |
|
|
|
width: double.infinity, |
|
|
|
margin: EdgeInsets.only(right:61.w), |
|
|
|
margin: EdgeInsets.only(right:61.w), |
|
|
@ -123,21 +128,28 @@ class _HomeSideslipDialog extends State<HomeSideslipDialog> with SingleTickerPro |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
)), |
|
|
|
)), |
|
|
|
Container( |
|
|
|
GestureDetector( |
|
|
|
alignment: Alignment.center, |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
width: double.infinity, |
|
|
|
onTap: (){ |
|
|
|
padding: EdgeInsets.symmetric(vertical: 9.h), |
|
|
|
SystemChrome.setSystemUIOverlayStyle( |
|
|
|
margin: EdgeInsets.only(left:16.w,right: 16.w,bottom: 103.h,top: 20.h), |
|
|
|
SystemUiOverlayStyle(statusBarColor: Colors.transparent)); |
|
|
|
decoration: BoxDecoration( |
|
|
|
}, |
|
|
|
color: Color(0xFF30415B), |
|
|
|
child: Container( |
|
|
|
borderRadius: BorderRadius.circular(4.w), |
|
|
|
alignment: Alignment.center, |
|
|
|
), |
|
|
|
width: double.infinity, |
|
|
|
child:Text("退出登录", |
|
|
|
padding: EdgeInsets.symmetric(vertical: 9.h), |
|
|
|
style: TextStyle( |
|
|
|
margin: EdgeInsets.only(left:16.w,right: 16.w,bottom: 103.h,top: 20.h), |
|
|
|
fontSize: 14.sp, |
|
|
|
decoration: BoxDecoration( |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
color: Color(0xFF30415B), |
|
|
|
color: Colors.white |
|
|
|
borderRadius: BorderRadius.circular(4.w), |
|
|
|
),),), |
|
|
|
), |
|
|
|
|
|
|
|
child:Text("退出登录", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
|
|
|
color: Colors.white |
|
|
|
|
|
|
|
),),), |
|
|
|
|
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|