From 11d8f9fd30e73b5b49a0ea86f7800b6183d23bf4 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sat, 12 Aug 2023 14:33:15 +0700 Subject: [PATCH] refactor: apply changes according to Dart trailing commas --- lib/ui/views/installer/installer_view.dart | 8 ++++++-- lib/ui/views/installer/installer_viewmodel.dart | 6 ++++-- lib/ui/widgets/patchesSelectorView/patch_item.dart | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/ui/views/installer/installer_view.dart b/lib/ui/views/installer/installer_view.dart index 6f020189..47c0e36a 100644 --- a/lib/ui/views/installer/installer_view.dart +++ b/lib/ui/views/installer/installer_view.dart @@ -39,14 +39,18 @@ class InstallerView extends StatelessWidget { visible: !model.hasErrors, child: IconButton.filledTonal( tooltip: FlutterI18n.translate( - context, 'installerView.exportApkButtonTooltip'), + context, + 'installerView.exportApkButtonTooltip', + ), icon: const Icon(Icons.save), onPressed: () => model.onButtonPressed(0), ), ), IconButton.filledTonal( tooltip: FlutterI18n.translate( - context, 'installerView.exportLogButtonTooltip'), + context, + 'installerView.exportLogButtonTooltip', + ), icon: const Icon(Icons.post_add), onPressed: () => model.onButtonPressed(1), ), diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 047c9a88..489f75dd 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -190,7 +190,9 @@ class InstallerViewModel extends BaseViewModel { children: [ Padding( padding: const EdgeInsets.symmetric( - horizontal: 20, vertical: 10), + horizontal: 20, + vertical: 10, + ), child: I18nText( 'installerView.installTypeDescription', child: Text( @@ -240,7 +242,7 @@ class InstallerViewModel extends BaseViewModel { Navigator.of(context).pop(); installResult(context, installType.value == 1); }, - ) + ), ], ), ); diff --git a/lib/ui/widgets/patchesSelectorView/patch_item.dart b/lib/ui/widgets/patchesSelectorView/patch_item.dart index 21bd4726..0dc6da77 100644 --- a/lib/ui/widgets/patchesSelectorView/patch_item.dart +++ b/lib/ui/widgets/patchesSelectorView/patch_item.dart @@ -186,7 +186,7 @@ class _PatchItemState extends State { ), ), ), - ) + ), ], ), widget.child ?? const SizedBox(),