Add import/export option to designs

This commit is contained in:
Hillel Coren 2023-01-10 12:29:30 +02:00
parent 6d9d57df90
commit 4319443af8
1 changed files with 12 additions and 3 deletions

View File

@ -483,7 +483,10 @@ class _DesignSettingsState extends State<DesignSettings> {
child: OutlinedButton(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(localization.viewDocs.toUpperCase()),
child: Text(
localization.viewDocs.toUpperCase(),
textAlign: TextAlign.center,
),
),
onPressed: () => launchUrl(Uri.parse(kDocsCustomFieldsUrl)),
),
@ -493,7 +496,10 @@ class _DesignSettingsState extends State<DesignSettings> {
child: OutlinedButton(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(localization.import.toUpperCase()),
child: Text(
localization.import.toUpperCase(),
textAlign: TextAlign.center,
),
),
onPressed: () async {
final designStr = await showDialog<String>(
@ -514,7 +520,10 @@ class _DesignSettingsState extends State<DesignSettings> {
child: OutlinedButton(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(localization.export.toUpperCase()),
child: Text(
localization.export.toUpperCase(),
textAlign: TextAlign.center,
),
),
onPressed: () {
final design = widget.viewModel.design;