From 1a69d525af31369561411791721184e4411faea1 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 23 Jun 2024 11:39:44 +0800 Subject: [PATCH] fix tile type droplist and change to build 44 --- flutter/lib/common/widgets/peer_tab_page.dart | 15 +++++++++++---- flutter/pubspec.yaml | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/flutter/lib/common/widgets/peer_tab_page.dart b/flutter/lib/common/widgets/peer_tab_page.dart index a04fec434..c89a88de5 100644 --- a/flutter/lib/common/widgets/peer_tab_page.dart +++ b/flutter/lib/common/widgets/peer_tab_page.dart @@ -802,13 +802,20 @@ class _PeerViewDropdownState extends State { child: SizedBox( height: 36, child: getRadio( - Text( - translate(types.indexOf(e) == 0 + Tooltip( + message: translate(types.indexOf(e) == 0 ? 'Big tiles' : types.indexOf(e) == 1 ? 'Small tiles' : 'List'), - style: style), + child: Icon( + e == PeerUiType.grid + ? Icons.grid_view_rounded + : e == PeerUiType.list + ? Icons.view_list_rounded + : Icons.view_agenda_rounded, + size: 18, + )), e, peerCardUiType.value, dense: true, @@ -838,7 +845,7 @@ class _PeerViewDropdownState extends State { child: Icon( peerCardUiType.value == PeerUiType.grid ? Icons.grid_view_rounded - : peerCardUiType.value == PeerUiType.tile + : peerCardUiType.value == PeerUiType.list ? Icons.view_list_rounded : Icons.view_agenda_rounded, size: 18, diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 85c6cda11..d4d25d0d7 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # 1.1.9-1 works for android, but for ios it becomes 1.1.91, need to set it to 1.1.9-a.1 for iOS, will get 1.1.9.1, but iOS store not allow 4 numbers -version: 1.2.6+43 +version: 1.2.6+44 environment: sdk: '^3.1.0'