Hide format when exporting as JSON

This commit is contained in:
Hillel Coren 2022-05-29 11:59:16 +03:00
parent 2123b1684f
commit 5546ccefed
1 changed files with 21 additions and 19 deletions

View File

@ -135,6 +135,7 @@ class _ImportExportState extends State<ImportExport> {
.toList()),
),
),
if (_exportFormat == ImportType.csv)
InputDecorator(
decoration:
InputDecoration(labelText: localization.exportType),
@ -148,10 +149,11 @@ class _ImportExportState extends State<ImportExport> {
});
},
items: ExportType.values
.map((importType) => DropdownMenuItem<ExportType>(
.map((importType) =>
DropdownMenuItem<ExportType>(
value: importType,
child:
Text(localization.lookup('$importType'))))
child: Text(localization
.lookup('$importType'))))
.toList()),
),
),