add copy storage path button

This commit is contained in:
boa-z
2024-11-08 23:10:24 +08:00
parent d910b8a35d
commit 856ec23586

View File

@@ -20,6 +20,13 @@ class _AppSettingsState extends State<AppSettings> {
ListTile( ListTile(
title: Text("Storage Path for local comics".tl), title: Text("Storage Path for local comics".tl),
subtitle: Text(LocalManager().path, softWrap: false), 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(), ).toSliver(),
_CallbackSetting( _CallbackSetting(
title: "Set New Storage Path".tl, title: "Set New Storage Path".tl,