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()) {
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",
);
}

View file

@ -356,7 +356,7 @@ class _HomeViewState extends State<HomeView> {
),
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<HomeView> {
final filePath = await FlutterFileDialog.pickFile(
params: OpenFileDialogParams(
dialogType: OpenFileDialogType.image,
sourceType: sourceType));
sourceType: sourceType,),);
if (filePath == null) {
if (mounted) Navigator.of(context).pop();
return;

View file

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

View file

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

View file

@ -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