mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
@@ -2189,19 +2189,21 @@ Widget buildRemoteBlock({required Widget child, WhetherUseRemoteBlock? use}) {
|
||||
));
|
||||
}
|
||||
|
||||
Widget unreadMessageCountBuilder(RxInt? count) {
|
||||
Widget unreadMessageCountBuilder(RxInt? count,
|
||||
{double? size, double? fontSize, double? marginLeft}) {
|
||||
return Obx(() => Offstage(
|
||||
offstage: !((count?.value ?? 0) > 0),
|
||||
child: Container(
|
||||
width: 16,
|
||||
height: 16,
|
||||
width: size ?? 16,
|
||||
height: size ?? 16,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: Center(
|
||||
child: Text("${count?.value ?? 0}",
|
||||
maxLines: 1, style: TextStyle(color: Colors.white, fontSize: 10)),
|
||||
maxLines: 1,
|
||||
style: TextStyle(color: Colors.white, fontSize: fontSize ?? 10)),
|
||||
),
|
||||
).marginOnly(left: 4)));
|
||||
).marginOnly(left: marginLeft ?? 4)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user