revert cm fixed width

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-07-11 10:05:31 +08:00
parent d7ef3df2b3
commit 3db0f90af9
2 changed files with 11 additions and 7 deletions

View File

@ -2212,8 +2212,7 @@ Widget unreadMessageCountBuilder(RxInt? count,
))); )));
} }
Widget unreadTopRightBuilder(RxInt? count, Widget unreadTopRightBuilder(RxInt? count, {Widget? icon}) {
{Widget? icon, double? size, double? fontSize}) {
return Stack( return Stack(
children: [ children: [
icon ?? Icon(Icons.chat), icon ?? Icon(Icons.chat),

View File

@ -185,14 +185,19 @@ class ConnectionManagerState extends State<ConnectionManager> {
child: child:
ChatPage(type: ChatPageType.desktopCM)), ChatPage(type: ChatPageType.desktopCM)),
), ),
flex: (kConnectionManagerWindowSizeOpenChat.width -
kConnectionManagerWindowSizeClosedChat
.width)
.toInt(),
) )
: Offstage(), : Offstage(),
), ),
SizedBox( Expanded(
width: kConnectionManagerWindowSizeClosedChat.width - child: pageView,
10, // 10 is from overflow flex: kConnectionManagerWindowSizeClosedChat.width
child: pageView, .toInt() -
) 4 // prevent stretch of the page view when chat is open,
),
], ],
), ),
), ),