From 53e5dd1c1250369284bd7c4bca1708f713061a8d Mon Sep 17 00:00:00 2001 From: Yu Juncen Date: Sun, 6 Aug 2023 00:40:21 +0800 Subject: [PATCH] resolve comf --- lib/components/chat_room.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/components/chat_room.dart b/lib/components/chat_room.dart index d37ae05..d86753e 100644 --- a/lib/components/chat_room.dart +++ b/lib/components/chat_room.dart @@ -92,13 +92,12 @@ class ListPane extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: Platform.isIOS - ? AppBar( + appBar: AppBar( systemOverlayStyle: SystemUiOverlayStyle( statusBarBrightness: Theme.of(context).brightness), backgroundColor: Theme.of(context).colorScheme.background, - ) - : null, + toolbarHeight: 0, + ), primary: false, floatingActionButton: Obx(() => NewChatButton( pctl: pctl, @@ -125,10 +124,12 @@ class ListPane extends StatelessWidget { TextSpan( text: "${room.firstMessage!.userName}: ", style: const TextStyle( + fontSize: 18, )), TextSpan( text: room.firstMessage!.message, style: const TextStyle( + fontSize: 18, overflow: TextOverflow.ellipsis, )) ]),