From 07d916249101401fc3ca27da714b61236f3b80c2 Mon Sep 17 00:00:00 2001 From: 21pages Date: Thu, 29 Jun 2023 10:26:03 +0800 Subject: [PATCH] remove PopupMenuButton default tooltip, and then long press will pop up menu Signed-off-by: 21pages --- flutter/lib/common/widgets/chat_page.dart | 1 + flutter/lib/mobile/pages/connection_page.dart | 1 + flutter/lib/mobile/pages/file_manager_page.dart | 3 +++ flutter/lib/mobile/pages/server_page.dart | 1 + 4 files changed, 6 insertions(+) diff --git a/flutter/lib/common/widgets/chat_page.dart b/flutter/lib/common/widgets/chat_page.dart index 119103753..0e6be569e 100644 --- a/flutter/lib/common/widgets/chat_page.dart +++ b/flutter/lib/common/widgets/chat_page.dart @@ -23,6 +23,7 @@ class ChatPage extends StatelessWidget implements PageShape { @override final appBarActions = [ PopupMenuButton( + tooltip: "", icon: Icon(Icons.group), itemBuilder: (context) { // only mobile need [appBarActions], just bind gFFI.chatModel diff --git a/flutter/lib/mobile/pages/connection_page.dart b/flutter/lib/mobile/pages/connection_page.dart index 5a581f0c7..3f8fdd32e 100644 --- a/flutter/lib/mobile/pages/connection_page.dart +++ b/flutter/lib/mobile/pages/connection_page.dart @@ -215,6 +215,7 @@ class _WebMenuState extends State { Widget build(BuildContext context) { Provider.of(context); return PopupMenuButton( + tooltip: "", icon: const Icon(Icons.more_vert), itemBuilder: (context) { return (isIOS diff --git a/flutter/lib/mobile/pages/file_manager_page.dart b/flutter/lib/mobile/pages/file_manager_page.dart index d6e366ad6..3fceba240 100644 --- a/flutter/lib/mobile/pages/file_manager_page.dart +++ b/flutter/lib/mobile/pages/file_manager_page.dart @@ -131,6 +131,7 @@ class _FileManagerPageState extends State { ), actions: [ PopupMenuButton( + tooltip: "", icon: Icon(Icons.more_vert), itemBuilder: (context) { return [ @@ -473,6 +474,7 @@ class _FileManagerViewState extends State { setState(() {}); }) : PopupMenuButton( + tooltip: "", icon: Icon(Icons.more_vert), itemBuilder: (context) { return [ @@ -585,6 +587,7 @@ class _FileManagerViewState extends State { onPressed: controller.goToParentDirectory, ), PopupMenuButton( + tooltip: "", icon: Icon(Icons.sort), itemBuilder: (context) { return SortBy.values diff --git a/flutter/lib/mobile/pages/server_page.dart b/flutter/lib/mobile/pages/server_page.dart index d4fbbb498..8eadcaa2b 100644 --- a/flutter/lib/mobile/pages/server_page.dart +++ b/flutter/lib/mobile/pages/server_page.dart @@ -23,6 +23,7 @@ class ServerPage extends StatefulWidget implements PageShape { @override final appBarActions = [ PopupMenuButton( + tooltip: "", icon: const Icon(Icons.more_vert), itemBuilder: (context) { listTile(String text, bool checked) {