From a90ad2debce2cc6b11cf13d7decdd42f2f3467a0 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 1 Dec 2025 00:04:51 +0800 Subject: [PATCH] :lipstick: Optimize style of online counter again --- lib/screens/chat/room.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screens/chat/room.dart b/lib/screens/chat/room.dart index 32f20ba9..fce0bfe8 100644 --- a/lib/screens/chat/room.dart +++ b/lib/screens/chat/room.dart @@ -2,6 +2,7 @@ import "dart:async"; import "dart:math" as math; import "package:easy_localization/easy_localization.dart"; import "package:file_picker/file_picker.dart"; +import "package:google_fonts/google_fonts.dart"; import "package:image_picker/image_picker.dart"; import "package:flutter/material.dart"; import "package:go_router/go_router.dart"; @@ -462,10 +463,9 @@ class ChatRoomScreen extends HookConsumerWidget { Badge( isLabelVisible: (onlineCount.value ?? 0) > 1, label: Text('${(onlineCount as AsyncData?)?.value}'), + textStyle: GoogleFonts.robotoMono(fontSize: 10), backgroundColor: - onlineCount.value != null && (onlineCount.value ?? 0) > 1 - ? Colors.green - : Colors.grey, + (onlineCount.value ?? 0) > 1 ? Colors.green : Colors.grey, textColor: Colors.white, offset: Offset(6, 14), child: SizedBox(