From 0a7dbbde78e5401b63f94565d3f4153020db7371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Sat, 10 Feb 2024 16:20:44 +0100 Subject: [PATCH] chore: auto-fix lints --- lib/views/create_entry.dart | 3 +-- lib/views/home.dart | 4 ++-- lib/views/setup.dart | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/views/create_entry.dart b/lib/views/create_entry.dart index e47849e..26593f2 100644 --- a/lib/views/create_entry.dart +++ b/lib/views/create_entry.dart @@ -16,9 +16,8 @@ class CreateSingleEntryView extends StatefulWidget { /// Used when user wants to add new entry const CreateSingleEntryView({ required this.w, - super.key, + required this.locale, super.key, this.editEntry, - required this.locale, }); /// The wallet, where the entry will be saved to diff --git a/lib/views/home.dart b/lib/views/home.dart index 3c041b4..58c72fb 100644 --- a/lib/views/home.dart +++ b/lib/views/home.dart @@ -47,7 +47,7 @@ class _HomeViewState extends State { var _searchActive = false; // whether search field is shown var _filter = ""; // search filter final searchFocus = FocusNode(); - var sort = SortType.newest; + SortType sort = SortType.newest; OverlayEntry? overlayEntry; @override @@ -247,7 +247,7 @@ class _HomeViewState extends State { .then((value) async { wallets = await WalletManager.listWallets(); selectedWallet = await WalletManager.loadWallet( - selectedWallet!.name); + selectedWallet!.name,); }); } else if (value == AppLocalizations.of(context).about) { showAbout(context); diff --git a/lib/views/setup.dart b/lib/views/setup.dart index 37a34ac..e97a659 100644 --- a/lib/views/setup.dart +++ b/lib/views/setup.dart @@ -156,7 +156,7 @@ class _SetupViewState extends State { name: name, currency: _selectedCurrency, categories: categories, - starterBalance: double.parse(_balanceController.text)); + starterBalance: double.parse(_balanceController.text),); await WalletManager.saveWallet(wallet); if (widget.newWallet && context.mounted) {