feat: support import of Emoji packs as zip file
Signed-off-by: The one with the braid <the-one@with-the-braid.cf> Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
parent
54ea513f36
commit
0c70017cd8
6 changed files with 493 additions and 4 deletions
|
|
@ -33,6 +33,20 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
body: MaxWidthBody(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
if (!controller.readonly)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 8.0,
|
||||
),
|
||||
child: ListTile(
|
||||
title: Text(L10n.of(context)!.importFromZipFile),
|
||||
trailing: IconButton(
|
||||
tooltip: L10n.of(context)!.importZipFile,
|
||||
icon: const Icon(Icons.file_open),
|
||||
onPressed: controller.importEmojiZip,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (!controller.readonly)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
|
|
@ -203,6 +217,11 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
),
|
||||
const Divider(),
|
||||
ListTile(
|
||||
title: Text(L10n.of(context)!.exportEmotePack),
|
||||
onTap: controller.exportAsZip,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue