message_page.dart
2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/res/colors.dart';
import 'package:one_key/widgets/app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import 'message_left_page.dart';
import 'message_right_page.dart';
class MessagePage extends StatefulWidget {
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return new MessagePageState();
}
}
class MessagePageState extends State<MessagePage> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return Container(
width: double.infinity,
height: double.infinity,
color: MyColours.color_f5f5f5,
child: Column(
children: <Widget>[
MyAppBar(
"消息中心",
showBack: false,
),
Expanded(
child: DefaultTabController(
length: 2,
child: Column(
children: <Widget>[
Material(
color: MyColours.color_ffffff,
child: SizedBox(
width: double.infinity,
height: ScreenUtil().setHeight(76),
child: TabBar(
tabs: [
Tab(
text: "未处理",
),
Tab(
text: "已处理",
)
],
indicatorColor: MyColours.color_199095,
indicatorSize: TabBarIndicatorSize.label,
indicatorWeight: ScreenUtil().setHeight(4.0),
labelColor: MyColours.color_199095,
unselectedLabelColor: MyColours.color_999999,
labelStyle: TextStyle(
fontSize: ScreenUtil().setSp(32),
fontWeight: FontWeight.bold),
),
),
),
VEmptyView(11),
Expanded(
flex: 1,
child: TabBarView(
children: [MessageLeftPage(), MessageRightPage()]),
)
],
)),
)
],
),
);
}
}