✨ Easy way to copy sticker pack
This commit is contained in:
parent
863eca364f
commit
e61497dc70
@ -178,5 +178,6 @@
|
|||||||
"pickFile": "Pick a file",
|
"pickFile": "Pick a file",
|
||||||
"uploading": "Uploading",
|
"uploading": "Uploading",
|
||||||
"uploadingProgress": "Uploading {} of {}",
|
"uploadingProgress": "Uploading {} of {}",
|
||||||
"uploadAll": "Upload All"
|
"uploadAll": "Upload All",
|
||||||
|
"stickerCopyPlaceholder": "Copy Placeholder"
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ import 'package:auto_route/auto_route.dart';
|
|||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||||
import 'package:gap/gap.dart';
|
import 'package:gap/gap.dart';
|
||||||
@ -157,6 +158,19 @@ class StickerPackDetailScreen extends HookConsumerWidget {
|
|||||||
menuProvider: (_) {
|
menuProvider: (_) {
|
||||||
return Menu(
|
return Menu(
|
||||||
children: [
|
children: [
|
||||||
|
MenuAction(
|
||||||
|
title: 'stickerCopyPlaceholder'.tr(),
|
||||||
|
image: MenuImage.icon(Symbols.copy_all),
|
||||||
|
callback: () {
|
||||||
|
Clipboard.setData(
|
||||||
|
ClipboardData(
|
||||||
|
text:
|
||||||
|
':${pack.prefix}${sticker.slug}:',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
MenuSeparator(),
|
||||||
MenuAction(
|
MenuAction(
|
||||||
title: 'edit'.tr(),
|
title: 'edit'.tr(),
|
||||||
image: MenuImage.icon(Symbols.edit),
|
image: MenuImage.icon(Symbols.edit),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user