fix: change select icon default state

This commit is contained in:
Alberto Ponces 2022-08-25 10:28:40 +01:00
parent 9f82b9b275
commit bfbcb510c4
4 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,4 @@
// ignore_for_file: use_build_context_synchronously
import 'dart:convert';
import 'dart:io';
import 'package:app_installer/app_installer.dart';
import 'package:device_apps/device_apps.dart';
@ -14,7 +13,6 @@ import 'package:revanced_manager/models/patched_application.dart';
import 'package:revanced_manager/services/manager_api.dart';
import 'package:revanced_manager/services/patcher_api.dart';
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:stacked/stacked.dart';
@lazySingleton

View File

@ -54,7 +54,7 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
Expanded(
child: ListView(
children: model
.getFilteredPatches(_query)
.getQueriedPatches(_query)
.map((patch) => PatchItem(
name: patch.name,
simpleName: patch.simpleName,

View File

@ -51,7 +51,7 @@ class PatchesSelectorViewModel extends BaseViewModel {
locator<PatcherViewModel>().notifyListeners();
}
List<Patch> getFilteredPatches(String query) {
List<Patch> getQueriedPatches(String query) {
return patches
.where((patch) =>
query.isEmpty ||

View File

@ -28,7 +28,7 @@ class SearchBar extends StatefulWidget {
class _SearchBarState extends State<SearchBar> {
final TextEditingController _textController = TextEditingController();
bool _toggleSelectAll = false;
bool _toggleSelectAll = true;
@override
Widget build(BuildContext context) {