chore: apply automatic lint fixes

This commit is contained in:
Matyáš Caras 2024-01-29 18:02:06 +01:00
parent 0e6ca995e1
commit da7b46b9cb
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6
5 changed files with 8 additions and 7 deletions

View file

@ -93,7 +93,7 @@ class WalletManager {
if (!await FlutterFileDialog.isPickDirectorySupported()) { if (!await FlutterFileDialog.isPickDirectorySupported()) {
File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n") File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n")
.copySync( .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; return;
} }
@ -105,7 +105,7 @@ class WalletManager {
File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n") File("${(await getApplicationDocumentsDirectory()).path}/wallets/$n")
.readAsBytesSync(), .readAsBytesSync(),
fileName: 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", mimeType: "application/json",
); );
} }

View file

@ -356,7 +356,7 @@ class _HomeViewState extends State<HomeView> {
), ),
elements: selectedWallet!.entries elements: selectedWallet!.entries
.where((element) => .where((element) =>
element.data.name.contains(_filter)) element.data.name.contains(_filter),)
.toList(), .toList(),
itemComparator: (a, b) => itemComparator: (a, b) =>
b.date.compareTo(a.date), b.date.compareTo(a.date),
@ -638,7 +638,7 @@ class _HomeViewState extends State<HomeView> {
final filePath = await FlutterFileDialog.pickFile( final filePath = await FlutterFileDialog.pickFile(
params: OpenFileDialogParams( params: OpenFileDialogParams(
dialogType: OpenFileDialogType.image, dialogType: OpenFileDialogType.image,
sourceType: sourceType)); sourceType: sourceType,),);
if (filePath == null) { if (filePath == null) {
if (mounted) Navigator.of(context).pop(); if (mounted) Navigator.of(context).pop();
return; return;

View file

@ -158,7 +158,7 @@ class _EditCategoriesViewState extends State<EditCategoriesView> {
), ),
], ],
title: Text( title: Text(
AppLocalizations.of(context).pickColor), AppLocalizations.of(context).pickColor,),
content: Column( content: Column(
children: [ children: [
ColorPicker( ColorPicker(
@ -243,7 +243,7 @@ class _EditCategoriesViewState extends State<EditCategoriesView> {
), ),
], ],
title: Text(AppLocalizations.of(context) title: Text(AppLocalizations.of(context)
.setupCategoriesEditingName), .setupCategoriesEditingName,),
content: SizedBox( content: SizedBox(
width: 400, width: 400,
child: child:

View file

@ -102,7 +102,7 @@ class _TessdataListViewState extends State<TessdataListView> {
context: context, context: context,
builder: (c) => AlertDialog.adaptive( builder: (c) => AlertDialog.adaptive(
title: Text(AppLocalizations.of(context) title: Text(AppLocalizations.of(context)
.langDownloadDialog(lang)), .langDownloadDialog(lang),),
content: StreamBuilder( content: StreamBuilder(
builder: (context, snapshot) { builder: (context, snapshot) {
if (snapshot.connectionState == if (snapshot.connectionState ==

View file

@ -40,6 +40,7 @@ dependencies:
settings_ui: ^2.0.2 settings_ui: ^2.0.2
shared_preferences: ^2.2.2 shared_preferences: ^2.2.2
flutter_gen: any
dev_dependencies: dev_dependencies:
build_runner: ^2.4.6 build_runner: ^2.4.6
flutter_launcher_icons: ^0.13.1 flutter_launcher_icons: ^0.13.1