diff --git a/lib/app_sources/gitlab.dart b/lib/app_sources/gitlab.dart index bea24eb0..15672506 100644 --- a/lib/app_sources/gitlab.dart +++ b/lib/app_sources/gitlab.dart @@ -174,7 +174,7 @@ class GitLab extends AppSource { ...getLinksFromParsedHTML(entryContent, RegExp('/[^/]+\\.apk\$', caseSensitive: false), '') .where((element) => Uri.parse(element).host != '') - .toList() + ]; var entryId = entry.querySelector('id')?.innerHtml; var version = diff --git a/lib/components/generated_form.dart b/lib/components/generated_form.dart index 41e742ff..af9a9297 100644 --- a/lib/components/generated_form.dart +++ b/lib/components/generated_form.dart @@ -27,21 +27,16 @@ class GeneratedFormTextField extends GeneratedFormItem { late bool password; late TextInputType? textInputType; - GeneratedFormTextField(String key, - {String label = 'Input', - List belowWidgets = const [], - String defaultValue = '', - List additionalValidators = const [], + GeneratedFormTextField(super.key, + {super.label, + super.belowWidgets, + String super.defaultValue = '', + List super.additionalValidators = const [], this.required = true, this.max = 1, this.hint, this.password = false, - this.textInputType}) - : super(key, - label: label, - belowWidgets: belowWidgets, - defaultValue: defaultValue, - additionalValidators: additionalValidators); + this.textInputType}); @override String ensureType(val) { @@ -54,18 +49,14 @@ class GeneratedFormDropdown extends GeneratedFormItem { List? disabledOptKeys; GeneratedFormDropdown( - String key, + super.key, this.opts, { - String label = 'Input', - List belowWidgets = const [], - String defaultValue = '', + super.label, + super.belowWidgets, + String super.defaultValue = '', this.disabledOptKeys, - List additionalValidators = const [], - }) : super(key, - label: label, - belowWidgets: belowWidgets, - defaultValue: defaultValue, - additionalValidators: additionalValidators); + List super.additionalValidators = const [], + }); @override String ensureType(val) { @@ -75,16 +66,12 @@ class GeneratedFormDropdown extends GeneratedFormItem { class GeneratedFormSwitch extends GeneratedFormItem { GeneratedFormSwitch( - String key, { - String label = 'Input', - List belowWidgets = const [], - bool defaultValue = false, - List additionalValidators = const [], - }) : super(key, - label: label, - belowWidgets: belowWidgets, - defaultValue: defaultValue, - additionalValidators: additionalValidators); + super.key, { + super.label, + super.belowWidgets, + bool super.defaultValue = false, + List super.additionalValidators = const [], + }); @override bool ensureType(val) { @@ -98,22 +85,17 @@ class GeneratedFormTagInput extends GeneratedFormItem { late WrapAlignment alignment; late String emptyMessage; late bool showLabelWhenNotEmpty; - GeneratedFormTagInput(String key, - {String label = 'Input', - List belowWidgets = const [], - Map> defaultValue = const {}, + GeneratedFormTagInput(super.key, + {super.label, + super.belowWidgets, + Map> super.defaultValue = const {}, List> value)> - additionalValidators = const [], + super.additionalValidators = const [], this.deleteConfirmationMessage, this.singleSelect = false, this.alignment = WrapAlignment.start, this.emptyMessage = 'Input', - this.showLabelWhenNotEmpty = true}) - : super(key, - label: label, - belowWidgets: belowWidgets, - defaultValue: defaultValue, - additionalValidators: additionalValidators); + this.showLabelWhenNotEmpty = true}); @override Map> ensureType(val) { diff --git a/lib/main.dart b/lib/main.dart index 89a2f83f..36b10798 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.14.33'; +const String currentVersion = '0.14.34'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/pages/add_app.dart b/lib/pages/add_app.dart index 41d047c7..08f30243 100644 --- a/lib/pages/add_app.dart +++ b/lib/pages/add_app.dart @@ -486,7 +486,7 @@ class _AddAppPageState extends State { : TextDecoration.none, fontStyle: FontStyle.italic), ))) - .toList() + ]); return Scaffold( diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 0d3c2c83..6deda9e2 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -503,7 +503,7 @@ class AppsPageState extends State { .entries .map((e) => ((e.key / (listedApps[index].app.categories.length - 1)))) - .toList(), + , 1 ]; if (stops.length == 2) { @@ -522,7 +522,7 @@ class AppsPageState extends State { .map((e) => Color(settingsProvider.categories[e] ?? transparent) .withAlpha(255)) - .toList(), + , Color(transparent) ])), child: ListTile( @@ -984,7 +984,7 @@ class AppsPageState extends State { ...sourceProvider.sources .map((e) => MapEntry(e.runtimeType.toString(), e.name)) - .toList() + ]) ] ], diff --git a/lib/pages/import_export.dart b/lib/pages/import_export.dart index d98255f2..8f76e806 100644 --- a/lib/pages/import_export.dart +++ b/lib/pages/import_export.dart @@ -440,7 +440,7 @@ class _ImportExportPageState extends State { child: Text( tr('searchX', args: [source.name]))) ])) - .toList(), + , ...sourceProvider.massUrlSources .map((source) => Column( crossAxisAlignment: @@ -456,7 +456,7 @@ class _ImportExportPageState extends State { child: Text( tr('importX', args: [source.name]))) ])) - .toList(), + , const Spacer(), const Divider( height: 32, @@ -518,7 +518,7 @@ class _ImportErrorDialogState extends State { style: const TextStyle(fontStyle: FontStyle.italic), ) ]); - }).toList() + }) ]), actions: [ TextButton( diff --git a/pubspec.yaml b/pubspec.yaml index ce353b8c..8859d6b2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.14.33+226 # When changing this, update the tag in main() accordingly +version: 0.14.34+228 # When changing this, update the tag in main() accordingly environment: sdk: '>=3.0.0 <4.0.0'