refactor: apply changes according to analysis

trailing commas, and sort import alphabetically
This commit is contained in:
Pun Butrach
2023-08-06 14:39:46 +07:00
parent 0b529c2629
commit 264d8d90c4
19 changed files with 42 additions and 37 deletions

View File

@ -74,7 +74,7 @@ class AppInfoViewModel extends BaseViewModel {
CustomMaterialButton(
label: I18nText('okButton'),
onPressed: () => Navigator.of(context).pop(),
)
),
],
),
);
@ -103,7 +103,7 @@ class AppInfoViewModel extends BaseViewModel {
Navigator.of(context).pop();
Navigator.of(context).pop();
},
)
),
],
),
);
@ -140,7 +140,7 @@ class AppInfoViewModel extends BaseViewModel {
CustomMaterialButton(
label: I18nText('okButton'),
onPressed: () => Navigator.of(context).pop(),
)
),
],
),
);

View File

@ -66,7 +66,7 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
context,
'installed',
translationParams: {
'version': 'v${widget.installedVersion}'
'version': 'v${widget.installedVersion}',
},
),
),

View File

@ -64,7 +64,7 @@ class InstalledAppsCard extends StatelessWidget {
Theme.of(context).colorScheme.secondary,
),
),
)
),
],
),
),

View File

@ -95,7 +95,7 @@ class UpdateConfirmationDialog extends StatelessWidget {
? model.updatePatches(context)
: model.updateManager(context);
},
)
),
],
),
),

View File

@ -129,7 +129,7 @@ class _PatchItemState extends State<PatchItem> {
widget.onChanged(widget.isSelected);
},
),
)
),
],
),
if (widget.isUnsupported &&
@ -190,7 +190,7 @@ class _PatchItemState extends State<PatchItem> {
CustomMaterialButton(
label: I18nText('okButton'),
onPressed: () => Navigator.of(context).pop(),
)
),
],
),
);

View File

@ -50,7 +50,7 @@ class CustomSwitch extends StatelessWidget {
color: Colors.black12.withOpacity(0.1),
spreadRadius: 0.5,
blurRadius: 1,
)
),
],
),
),

View File

@ -93,9 +93,9 @@ class SAdvancedSection extends StatelessWidget {
label: I18nText('yesButton'),
onPressed: () => {
Navigator.of(context).pop(),
_settingsViewModel.deleteKeystore()
_settingsViewModel.deleteKeystore(),
},
)
),
],
),
);

View File

@ -1,9 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_viewmodel.dart';
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';
class SExperimentalUniversalPatches extends StatefulWidget {
const SExperimentalUniversalPatches({super.key});

View File

@ -119,9 +119,9 @@ class SExportSection extends StatelessWidget {
label: I18nText('yesButton'),
onPressed: () => {
Navigator.of(context).pop(),
_settingsViewModel.resetSelectedPatches()
_settingsViewModel.resetSelectedPatches(),
},
)
),
],
),
);