From da7b46b9cbef251fe23a30bafb602b4bc19dd762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Mon, 29 Jan 2024 18:02:06 +0100 Subject: [PATCH] chore: apply automatic lint fixes --- lib/api/wallet_manager.dart | 4 ++-- lib/views/home.dart | 4 ++-- lib/views/settings/edit_categories.dart | 4 ++-- lib/views/settings/tessdata_list.dart | 2 +- pubspec.yaml | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/api/wallet_manager.dart b/lib/api/wallet_manager.dart index 2f07729..1ff5ff5 100644 --- a/lib/api/wallet_manager.dart +++ b/lib/api/wallet_manager.dart @@ -93,7 +93,7 @@ class WalletManager { if (!await FlutterFileDialog.isPickDirectorySupported()) { File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n") .copySync( - "${await getApplicationDocumentsDirectory()}/export_${n.replaceAll(RegExp('[|\\?*<":>+\[\]/\' ]+'), '_')}_${DateFormat("dd_MM_yyyy").format(DateTime.now())}.json", + "${await getApplicationDocumentsDirectory()}/export_${n.replaceAll(RegExp('[|\\?*<":>+[]/\' ]+'), '_')}_${DateFormat("dd_MM_yyyy").format(DateTime.now())}.json", ); return; } @@ -105,7 +105,7 @@ class WalletManager { File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n") .readAsBytesSync(), fileName: - "export_${n.replaceAll(RegExp('[|\\?*<":>+\[\]/\' ]+'), '_')}_${DateFormat("dd_MM_yyyy").format(DateTime.now())}.json", + "export_${n.replaceAll(RegExp('[|\\?*<":>+[]/\' ]+'), '_')}_${DateFormat("dd_MM_yyyy").format(DateTime.now())}.json", mimeType: "application/json", ); } diff --git a/lib/views/home.dart b/lib/views/home.dart index 2bc7a28..aa028f8 100644 --- a/lib/views/home.dart +++ b/lib/views/home.dart @@ -356,7 +356,7 @@ class _HomeViewState extends State { ), elements: selectedWallet!.entries .where((element) => - element.data.name.contains(_filter)) + element.data.name.contains(_filter),) .toList(), itemComparator: (a, b) => b.date.compareTo(a.date), @@ -638,7 +638,7 @@ class _HomeViewState extends State { final filePath = await FlutterFileDialog.pickFile( params: OpenFileDialogParams( dialogType: OpenFileDialogType.image, - sourceType: sourceType)); + sourceType: sourceType,),); if (filePath == null) { if (mounted) Navigator.of(context).pop(); return; diff --git a/lib/views/settings/edit_categories.dart b/lib/views/settings/edit_categories.dart index 22c5a94..0f5bb06 100644 --- a/lib/views/settings/edit_categories.dart +++ b/lib/views/settings/edit_categories.dart @@ -158,7 +158,7 @@ class _EditCategoriesViewState extends State { ), ], title: Text( - AppLocalizations.of(context).pickColor), + AppLocalizations.of(context).pickColor,), content: Column( children: [ ColorPicker( @@ -243,7 +243,7 @@ class _EditCategoriesViewState extends State { ), ], title: Text(AppLocalizations.of(context) - .setupCategoriesEditingName), + .setupCategoriesEditingName,), content: SizedBox( width: 400, child: diff --git a/lib/views/settings/tessdata_list.dart b/lib/views/settings/tessdata_list.dart index 99382d3..45443b4 100644 --- a/lib/views/settings/tessdata_list.dart +++ b/lib/views/settings/tessdata_list.dart @@ -102,7 +102,7 @@ class _TessdataListViewState extends State { context: context, builder: (c) => AlertDialog.adaptive( title: Text(AppLocalizations.of(context) - .langDownloadDialog(lang)), + .langDownloadDialog(lang),), content: StreamBuilder( builder: (context, snapshot) { if (snapshot.connectionState == diff --git a/pubspec.yaml b/pubspec.yaml index ca3d000..c77c745 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,6 +40,7 @@ dependencies: settings_ui: ^2.0.2 shared_preferences: ^2.2.2 + flutter_gen: any dev_dependencies: build_runner: ^2.4.6 flutter_launcher_icons: ^0.13.1