CSV export

This commit is contained in:
Hillel Coren 2022-05-18 17:36:12 +03:00
parent e43e154217
commit 6ebd29b0ff
2 changed files with 12 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class _ImportExportState extends State<ImportExport> {
else ...[ else ...[
InputDecorator( InputDecorator(
decoration: decoration:
InputDecoration(labelText: localization.exportType), InputDecoration(labelText: localization.exportFormat),
child: DropdownButtonHideUnderline( child: DropdownButtonHideUnderline(
child: DropdownButton<ImportType>( child: DropdownButton<ImportType>(
isDense: true, isDense: true,
@ -286,7 +286,7 @@ class _FileImportState extends State<_FileImport> {
final List<Widget> children = [ final List<Widget> children = [
InputDecorator( InputDecorator(
decoration: InputDecoration( decoration: InputDecoration(
labelText: localization.importType, labelText: localization.importFormat,
), ),
child: DropdownButtonHideUnderline( child: DropdownButtonHideUnderline(
child: DropdownButton<ImportType>( child: DropdownButton<ImportType>(

View File

@ -16,6 +16,8 @@ mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = { static final Map<String, Map<String, String>> _localizedValues = {
'en': { 'en': {
// STARTER: lang key - do not remove comment // STARTER: lang key - do not remove comment
'import_format': 'Import Format',
'export_format': 'Export Format',
'export_type': 'Export Type', 'export_type': 'Export Type',
'stop_on_unpaid': 'Stop On Unpaid', 'stop_on_unpaid': 'Stop On Unpaid',
'stop_on_unpaid_help': 'stop_on_unpaid_help':
@ -69683,6 +69685,14 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]['export_type'] ?? _localizedValues[localeCode]['export_type'] ??
_localizedValues[localeCode]['export_type']; _localizedValues[localeCode]['export_type'];
String get importFormat =>
_localizedValues[localeCode]['import_format'] ??
_localizedValues[localeCode]['import_format'];
String get exportFormat =>
_localizedValues[localeCode]['export_format'] ??
_localizedValues[localeCode]['export_format'];
// STARTER: lang field - do not remove comment // STARTER: lang field - do not remove comment
String lookup(String key) { String lookup(String key) {