mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-08-14 17:42:40 +08:00
opt mobile unread and autoSizeTextField
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@ -2194,7 +2194,7 @@ Widget buildRemoteBlock({required Widget child, WhetherUseRemoteBlock? use}) {
|
||||
}
|
||||
|
||||
Widget unreadMessageCountBuilder(RxInt? count,
|
||||
{double? size, double? fontSize, double? marginLeft}) {
|
||||
{double? size, double? fontSize}) {
|
||||
return Obx(() => Offstage(
|
||||
offstage: !((count?.value ?? 0) > 0),
|
||||
child: Container(
|
||||
@ -2209,5 +2209,18 @@ Widget unreadMessageCountBuilder(RxInt? count,
|
||||
maxLines: 1,
|
||||
style: TextStyle(color: Colors.white, fontSize: fontSize ?? 10)),
|
||||
),
|
||||
).marginOnly(left: marginLeft ?? 4)));
|
||||
)));
|
||||
}
|
||||
|
||||
Widget unreadTopRightBuilder(RxInt? count,
|
||||
{Widget? icon, double? size, double? fontSize}) {
|
||||
return Stack(
|
||||
children: [
|
||||
icon ?? Icon(Icons.chat),
|
||||
Positioned(
|
||||
top: 0,
|
||||
right: 0,
|
||||
child: unreadMessageCountBuilder(count, size: 12, fontSize: 8))
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user