|
|
|
@ -143,34 +143,34 @@ class _SystemMessagePage extends State<SystemMessagePage> implements OnChatMessa
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Scaffold( |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
background: Colors.white, |
|
|
|
|
leadingColor: Colors.black, |
|
|
|
|
title: S.of(context).xiaoxi, |
|
|
|
|
titleSize: 18.sp, |
|
|
|
|
titleColor: Colors.black, |
|
|
|
|
actions: [ |
|
|
|
|
Container( |
|
|
|
|
margin: EdgeInsets.only(right: 16.w), |
|
|
|
|
alignment: Alignment.centerRight, |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
queryMsgStats(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).biaoweiyidu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontWeight:MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
// appBar: MyAppBar( |
|
|
|
|
// background: Colors.white, |
|
|
|
|
// leadingColor: Colors.black, |
|
|
|
|
// title: S.of(context).xiaoxi, |
|
|
|
|
// titleSize: 18.sp, |
|
|
|
|
// titleColor: Colors.black, |
|
|
|
|
// actions: [ |
|
|
|
|
// Container( |
|
|
|
|
// margin: EdgeInsets.only(right: 16.w), |
|
|
|
|
// alignment: Alignment.centerRight, |
|
|
|
|
// child: GestureDetector( |
|
|
|
|
// onTap: () { |
|
|
|
|
// setState(() { |
|
|
|
|
// queryMsgStats(); |
|
|
|
|
// }); |
|
|
|
|
// }, |
|
|
|
|
// child: Text( |
|
|
|
|
// S.of(context).biaoweiyidu, |
|
|
|
|
// style: TextStyle( |
|
|
|
|
// fontSize: 16.sp, |
|
|
|
|
// fontWeight:MyFontWeight.semi_bold, |
|
|
|
|
// color: Color(0xFF353535), |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
body: SmartRefresher( |
|
|
|
|
enablePullDown: true, |
|
|
|
|
enablePullUp: false, |
|
|
|
@ -197,6 +197,62 @@ class _SystemMessagePage extends State<SystemMessagePage> implements OnChatMessa
|
|
|
|
|
padding: EdgeInsets.only(bottom: 30.h), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
color: Colors.white, |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
top: MediaQuery.of(context).padding.top + 10.h, |
|
|
|
|
bottom: 15.h,right: 16.w), |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
alignment: Alignment.centerRight, |
|
|
|
|
margin: EdgeInsets.only(left: 12,), |
|
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.arrow_back_ios, |
|
|
|
|
color: Colors.black, |
|
|
|
|
size: 24, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).xiaoxi, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 18.sp, |
|
|
|
|
fontWeight: MyFontWeight.bold, |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
queryMsgStats(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).biaoweiyidu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: (){ |
|
|
|
@ -799,10 +855,11 @@ class _SystemMessagePage extends State<SystemMessagePage> implements OnChatMessa
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///聊天列表 |
|
|
|
|
Widget chatList(){ |
|
|
|
|
return Container( |
|
|
|
|
child: ListView.builder( |
|
|
|
|
// padding: EdgeInsets.only(top: 16), |
|
|
|
|
padding: EdgeInsets.only(top: 16), |
|
|
|
|
itemCount: 6, |
|
|
|
|
shrinkWrap: true, |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|