From 856ec235868d476aa0f875e0714aef6eca7a3d3d Mon Sep 17 00:00:00 2001 From: boa-z Date: Fri, 8 Nov 2024 23:10:24 +0800 Subject: [PATCH] add copy storage path button --- lib/pages/settings/app.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/settings/app.dart b/lib/pages/settings/app.dart index 4856248..81e4718 100644 --- a/lib/pages/settings/app.dart +++ b/lib/pages/settings/app.dart @@ -20,6 +20,13 @@ class _AppSettingsState extends State { ListTile( title: Text("Storage Path for local comics".tl), subtitle: Text(LocalManager().path, softWrap: false), + trailing: IconButton( + icon: const Icon(Icons.copy), + onPressed: () { + Clipboard.setData(ClipboardData(text: LocalManager().path)); + context.showMessage(message: "Path copied to clipboard".tl); + }, + ), ).toSliver(), _CallbackSetting( title: "Set New Storage Path".tl,