move copy address into share
This commit is contained in:
@@ -315,6 +315,17 @@ class TabMenu extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
SubmenuButton(
|
SubmenuButton(
|
||||||
menuChildren: [
|
menuChildren: [
|
||||||
|
MenuItemButton(
|
||||||
|
leadingIcon: const Icon(MdiIcons.contentCopy),
|
||||||
|
child: const Text('Copy Address'),
|
||||||
|
onPressed: () async {
|
||||||
|
final tabState = ref.read(tabStateProvider(selectedTabId))!;
|
||||||
|
|
||||||
|
await Clipboard.setData(
|
||||||
|
ClipboardData(text: tabState.url.toString()),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
MenuItemButton(
|
MenuItemButton(
|
||||||
leadingIcon: const Icon(Icons.open_in_browser),
|
leadingIcon: const Icon(Icons.open_in_browser),
|
||||||
child: const Text('Launch External'),
|
child: const Text('Launch External'),
|
||||||
@@ -377,17 +388,6 @@ class TabMenu extends HookConsumerWidget {
|
|||||||
leadingIcon: const Icon(Icons.share),
|
leadingIcon: const Icon(Icons.share),
|
||||||
child: const Text('Share'),
|
child: const Text('Share'),
|
||||||
),
|
),
|
||||||
MenuItemButton(
|
|
||||||
leadingIcon: const Icon(MdiIcons.contentCopy),
|
|
||||||
child: const Text('Copy Address'),
|
|
||||||
onPressed: () async {
|
|
||||||
final tabState = ref.read(tabStateProvider(selectedTabId))!;
|
|
||||||
|
|
||||||
await Clipboard.setData(
|
|
||||||
ClipboardData(text: tabState.url.toString()),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
MenuItemButton(
|
MenuItemButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await ref
|
await ref
|
||||||
|
|||||||
Reference in New Issue
Block a user