From 4fe85cdd4a8f89901fe09890bd0b59e36949cf8b Mon Sep 17 00:00:00 2001 From: rustdesk <info@rustdesk.com> Date: Wed, 26 Jul 2023 19:57:42 +0800 Subject: [PATCH] fix tags hidden in mobile --- flutter/lib/common/widgets/address_book.dart | 38 ++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/flutter/lib/common/widgets/address_book.dart b/flutter/lib/common/widgets/address_book.dart index 96425c451..a827df572 100644 --- a/flutter/lib/common/widgets/address_book.dart +++ b/flutter/lib/common/widgets/address_book.dart @@ -103,25 +103,27 @@ class _AddressBookState extends State<AddressBook> { Widget _buildAddressBookMobile() { return Column( children: [ - Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(6), - border: - Border.all(color: Theme.of(context).colorScheme.background)), - child: Container( - padding: const EdgeInsets.all(8.0), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - _buildTagHeader().marginOnly(left: 8.0, right: 0), - Container( - width: double.infinity, - child: _buildTags(), + Offstage( + offstage: hideAbTagsPanel.value, + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(6), + border: Border.all( + color: Theme.of(context).colorScheme.background)), + child: Container( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + _buildTagHeader().marginOnly(left: 8.0, right: 0), + Container( + width: double.infinity, + child: _buildTags(), + ), + ], ), - ], - ), - ), - ).marginOnly(bottom: 12.0), + ), + ).marginOnly(bottom: 12.0)), _buildPeersViews() ], );