|
|
|
@ -303,85 +303,82 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
|
|
|
|
|
// setState(() {}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Scaffold( |
|
|
|
|
// resizeToAvoidBottomInset: false, |
|
|
|
|
backgroundColor: Color(0xFFF6F6F6), |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
title: _toUser.nickname, |
|
|
|
|
titleColor: Color(0xFF0D0D0D), |
|
|
|
|
titleSize: 17.sp, |
|
|
|
|
leading: true, |
|
|
|
|
leadingColor: Colors.black, |
|
|
|
|
action: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
Navigator.of(context).pushNamed('/router/chat_setting',arguments: {"userId": _toUser.mid}); |
|
|
|
|
copyIndex = 0; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.more_horiz, |
|
|
|
|
color: Colors.black, |
|
|
|
|
size: 30, |
|
|
|
|
|
|
|
|
|
return GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.translucent, |
|
|
|
|
onTap: () { |
|
|
|
|
FocusScope.of(context).requestFocus(FocusNode()); |
|
|
|
|
setState(() { |
|
|
|
|
emojiShowing = false; |
|
|
|
|
isKeyBoardShow = emojiShowing; |
|
|
|
|
moreShow = false; |
|
|
|
|
isKeyBoardShow = moreShow; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Scaffold( |
|
|
|
|
// resizeToAvoidBottomInset: false, |
|
|
|
|
backgroundColor: Color(0xFFF6F6F6), |
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
title: _toUser.nickname, |
|
|
|
|
titleColor: Color(0xFF0D0D0D), |
|
|
|
|
titleSize: 17.sp, |
|
|
|
|
leading: true, |
|
|
|
|
leadingColor: Colors.black, |
|
|
|
|
action: GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
Navigator.of(context).pushNamed('/router/chat_setting',arguments: {"userId": _toUser.mid}); |
|
|
|
|
copyIndex = 0; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.more_horiz, |
|
|
|
|
color: Colors.black, |
|
|
|
|
size: 30, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
body: Container( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: SmartRefresher( |
|
|
|
|
enablePullDown: false, |
|
|
|
|
enablePullUp: true, |
|
|
|
|
header: MyHeader(), |
|
|
|
|
reverse: true, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
footer: CustomFooter( |
|
|
|
|
loadStyle: LoadStyle.ShowWhenLoading, |
|
|
|
|
builder: (BuildContext context, LoadStatus mode) { |
|
|
|
|
return (messages.length == 0) |
|
|
|
|
? Container() |
|
|
|
|
: MyFooter(mode); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
controller: refreshController, |
|
|
|
|
onLoading: () { |
|
|
|
|
refresh().then((value) { |
|
|
|
|
refreshState(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
controller: scrollController, |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.translucent, |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
emojiShowing = false; |
|
|
|
|
isKeyBoardShow = emojiShowing; |
|
|
|
|
moreShow = false; |
|
|
|
|
isKeyBoardShow = moreShow; |
|
|
|
|
FocusScope.of(context).requestFocus(FocusNode()); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: chatDetailsList(), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
body: Container( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: SmartRefresher( |
|
|
|
|
enablePullDown: false, |
|
|
|
|
enablePullUp: true, |
|
|
|
|
header: MyHeader(), |
|
|
|
|
reverse: true, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
footer: CustomFooter( |
|
|
|
|
loadStyle: LoadStyle.ShowWhenLoading, |
|
|
|
|
builder: (BuildContext context, LoadStatus mode) { |
|
|
|
|
return (messages.length == 0) |
|
|
|
|
? Container() |
|
|
|
|
: MyFooter(mode); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
controller: refreshController, |
|
|
|
|
onLoading: () { |
|
|
|
|
refresh().then((value) { |
|
|
|
|
refreshState(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: SingleChildScrollView( |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
controller: scrollController, |
|
|
|
|
child: chatDetailsList() |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
flex: 1, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
flex: 1, |
|
|
|
|
input() |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
input() |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|