commit
21a172478c
@ -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),
|
||||||
|
@ -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(),
|
||||||
)
|
)
|
||||||
: Expanded(child: Container()),
|
: 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,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -277,16 +277,16 @@ class ChatModel with ChangeNotifier {
|
|||||||
gFFI.chatModel.changeCurrentKey(key);
|
gFFI.chatModel.changeCurrentKey(key);
|
||||||
}
|
}
|
||||||
if (_isShowCMChatPage) {
|
if (_isShowCMChatPage) {
|
||||||
await windowManager.setSizeAlignment(
|
|
||||||
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
|
||||||
await windowManager.show();
|
|
||||||
_isShowCMChatPage = !_isShowCMChatPage;
|
_isShowCMChatPage = !_isShowCMChatPage;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
await windowManager.show();
|
||||||
|
await windowManager.setSizeAlignment(
|
||||||
|
kConnectionManagerWindowSizeClosedChat, Alignment.topRight);
|
||||||
} else {
|
} else {
|
||||||
requestChatInputFocus();
|
requestChatInputFocus();
|
||||||
|
await windowManager.show();
|
||||||
await windowManager.setSizeAlignment(
|
await windowManager.setSizeAlignment(
|
||||||
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
|
kConnectionManagerWindowSizeOpenChat, Alignment.topRight);
|
||||||
await windowManager.show();
|
|
||||||
_isShowCMChatPage = !_isShowCMChatPage;
|
_isShowCMChatPage = !_isShowCMChatPage;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user