|
...
|
...
|
@@ -6,6 +6,7 @@ import 'package:one_key/provider/my_model.dart'; |
|
|
|
import 'package:one_key/provider/update_model.dart';
|
|
|
|
import 'package:one_key/provider/user_model.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/utils/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/app_bar.dart';
|
|
...
|
...
|
@@ -28,11 +29,13 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
String cur_version = "";
|
|
|
|
bool newVersion = false;
|
|
|
|
MyModel myModel;
|
|
|
|
ScrollController controller;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
// TODO: implement initState
|
|
|
|
super.initState();
|
|
|
|
controller = ScrollController(initialScrollOffset: 0.0);
|
|
|
|
WidgetsBinding.instance.addObserver(this);
|
|
|
|
Utils.getCurrVersion().then((version) {
|
|
|
|
setState(() {
|
|
...
|
...
|
@@ -87,357 +90,240 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
myModel = Provider.of<MyModel>(context, listen: true);
|
|
|
|
return Stack(
|
|
|
|
children: <Widget>[
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(top: ScreenUtil().setHeight(242 + 121)),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "短信管理",
|
|
|
|
content:
|
|
|
|
myModel.smsInfo.isNotEmpty ? '剩余${myModel.smsInfo}条' : '',
|
|
|
|
callback: () {
|
|
|
|
Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "包间类型置满管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "联系客服",
|
|
|
|
content: "09:00~21:00",
|
|
|
|
callback: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "帮助与反馈",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goHelp(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: checkUpdate,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"版本更新",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
newVersion
|
|
|
|
? Container(
|
|
|
|
width: ScreenUtil().setWidth(120),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_E14553,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
"发现新版本",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_ffffff),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Text(
|
|
|
|
cur_version,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_666666),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arr_right_gray.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
Consumer<UserModel>(
|
|
|
|
builder:
|
|
|
|
(BuildContext context, UserModel model, Widget child) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
model.showLoginOutDialog(context);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Center(
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
"assets/icon_exist.png",
|
|
|
|
width: ScreenUtil().setWidth(30),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
HEmptyView(18),
|
|
|
|
Text("退出登录",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
backgroundColor: MyColours.color_199095, //把appbar的背景色改成透明
|
|
|
|
elevation: 0, //appbar的阴影
|
|
|
|
centerTitle: true, // 标题居中
|
|
|
|
title: Text(
|
|
|
|
'我的',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_fefefe,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
decoration: TextDecoration.none),
|
|
|
|
)),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(242 + 121),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
child: Scaffold(
|
|
|
|
backgroundColor: Colors.transparent, //把scaffold的背景色改成透明
|
|
|
|
appBar: AppBar(
|
|
|
|
backgroundColor: Colors.transparent, //把appbar的背景色改成透明
|
|
|
|
elevation: 0, //appbar的阴影
|
|
|
|
centerTitle: true, // 标题居中
|
|
|
|
title: Text(
|
|
|
|
'我的',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_fefefe,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
decoration: TextDecoration.none),
|
|
|
|
)),
|
|
|
|
body: Consumer<UserModel>(
|
|
|
|
builder:
|
|
|
|
(BuildContext context, UserModel model, Widget child) {
|
|
|
|
return Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(left: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.sellername,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(36)),
|
|
|
|
),
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.account +
|
|
|
|
" | " +
|
|
|
|
model.user.role_name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
body: NestedScrollView(
|
|
|
|
controller: controller,
|
|
|
|
headerSliverBuilder:
|
|
|
|
(BuildContext context, bool innerBoxIsScrolled) {
|
|
|
|
return <Widget>[
|
|
|
|
SliverAppBar(
|
|
|
|
pinned: false,
|
|
|
|
floating: true,
|
|
|
|
expandedHeight: ScreenUtil().setWidth(242),
|
|
|
|
flexibleSpace: FlexibleSpaceBar(
|
|
|
|
collapseMode: CollapseMode.pin,
|
|
|
|
background: Container(
|
|
|
|
//头部整个背景颜色
|
|
|
|
// height: ScreenUtil().getAdapterSize(800),
|
|
|
|
child: Consumer<UserModel>(builder:
|
|
|
|
(BuildContext context, UserModel model,
|
|
|
|
Widget child) {
|
|
|
|
return Stack(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(242 + 121),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.sellername,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(36)),
|
|
|
|
),
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.account +
|
|
|
|
" | " +
|
|
|
|
model.user.role_name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
));
|
|
|
|
},
|
|
|
|
)))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
// TODO: implement build
|
|
|
|
/* 原来的
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
color: MyColours.color_f5f5f5,
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
MyAppBar(
|
|
|
|
"我的",
|
|
|
|
showBack: false,
|
|
|
|
backgroundColor: MyColours.color_199095,
|
|
|
|
fontColor: MyColours.color_fefefe,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(242),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
padding: EdgeInsets.only(left: ScreenUtil().setWidth(40)),
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
child: Consumer<UserModel>(
|
|
|
|
);
|
|
|
|
}))),
|
|
|
|
)
|
|
|
|
];
|
|
|
|
},
|
|
|
|
body: Consumer<UserModel>(
|
|
|
|
builder: (BuildContext context, UserModel model, Widget child) {
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
return SingleChildScrollView(
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.sellername,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(36)),
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "短信管理",
|
|
|
|
content: myModel.smsInfo.isNotEmpty
|
|
|
|
? '剩余${myModel.smsInfo}条'
|
|
|
|
: '',
|
|
|
|
callback: () {
|
|
|
|
Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(38),
|
|
|
|
Text(
|
|
|
|
model.user.account + " | " + model.user.role_name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
VEmptyView(44),
|
|
|
|
MyItem(
|
|
|
|
title: "联系客服",
|
|
|
|
content: "09:00~21:00",
|
|
|
|
callback: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "帮助与反馈",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goHelp(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: checkUpdate,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"版本更新",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
newVersion
|
|
|
|
? Container(
|
|
|
|
width: ScreenUtil().setWidth(120),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_E14553,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
"发现新版本",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_ffffff),
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "包间类型置满管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "可订时段管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goBookTimeSetPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "接单时间管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {},
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "联系客服",
|
|
|
|
content: "09:00~21:00",
|
|
|
|
callback: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "帮助与反馈",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goHelp(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: checkUpdate,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"版本更新",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
newVersion
|
|
|
|
? Container(
|
|
|
|
width: ScreenUtil().setWidth(120),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_E14553,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
"发现新版本",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_ffffff),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Text(
|
|
|
|
cur_version,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_666666),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arr_right_gray.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Text(
|
|
|
|
cur_version,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_666666),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arr_right_gray.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
Consumer<UserModel>(
|
|
|
|
builder: (BuildContext context, UserModel model, Widget child) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
model.showLoginOutDialog(context);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Center(
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
"assets/icon_exist.png",
|
|
|
|
width: ScreenUtil().setWidth(30),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
HEmptyView(18),
|
|
|
|
Text("退出登录",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
*/
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
Consumer<UserModel>(
|
|
|
|
builder: (BuildContext context, UserModel model,
|
|
|
|
Widget child) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
model.showLoginOutDialog(context);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Center(
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
"assets/icon_exist.png",
|
|
|
|
width: ScreenUtil().setWidth(30),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
HEmptyView(18),
|
|
|
|
Text("退出登录",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
));
|
|
|
|
})));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|