diff --git a/lib/ui/settings/import_export.dart b/lib/ui/settings/import_export.dart index ceecb75d2..a55dd71d0 100644 --- a/lib/ui/settings/import_export.dart +++ b/lib/ui/settings/import_export.dart @@ -135,26 +135,28 @@ class _ImportExportState extends State { .toList()), ), ), - InputDecorator( - decoration: - InputDecoration(labelText: localization.exportType), - child: DropdownButtonHideUnderline( - child: DropdownButton( - isDense: true, - value: _exportType, - onChanged: (dynamic value) { - setState(() { - _exportType = value; - }); - }, - items: ExportType.values - .map((importType) => DropdownMenuItem( - value: importType, - child: - Text(localization.lookup('$importType')))) - .toList()), + if (_exportFormat == ImportType.csv) + InputDecorator( + decoration: + InputDecoration(labelText: localization.exportType), + child: DropdownButtonHideUnderline( + child: DropdownButton( + isDense: true, + value: _exportType, + onChanged: (dynamic value) { + setState(() { + _exportType = value; + }); + }, + items: ExportType.values + .map((importType) => + DropdownMenuItem( + value: importType, + child: Text(localization + .lookup('$importType')))) + .toList()), + ), ), - ), AppButton( iconData: MdiIcons.export, label: localization.export.toUpperCase(),