revert cm fixed width
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
d7ef3df2b3
commit
3db0f90af9
@ -2212,8 +2212,7 @@ Widget unreadMessageCountBuilder(RxInt? count,
|
||||
)));
|
||||
}
|
||||
|
||||
Widget unreadTopRightBuilder(RxInt? count,
|
||||
{Widget? icon, double? size, double? fontSize}) {
|
||||
Widget unreadTopRightBuilder(RxInt? count, {Widget? icon}) {
|
||||
return Stack(
|
||||
children: [
|
||||
icon ?? Icon(Icons.chat),
|
||||
|
@ -185,14 +185,19 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
||||
child:
|
||||
ChatPage(type: ChatPageType.desktopCM)),
|
||||
),
|
||||
flex: (kConnectionManagerWindowSizeOpenChat.width -
|
||||
kConnectionManagerWindowSizeClosedChat
|
||||
.width)
|
||||
.toInt(),
|
||||
)
|
||||
: Offstage(),
|
||||
),
|
||||
SizedBox(
|
||||
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||
10, // 10 is from overflow
|
||||
child: pageView,
|
||||
)
|
||||
Expanded(
|
||||
child: pageView,
|
||||
flex: kConnectionManagerWindowSizeClosedChat.width
|
||||
.toInt() -
|
||||
4 // prevent stretch of the page view when chat is open,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user