split up search page

This commit is contained in:
mertalev
2025-03-05 19:06:04 -05:00
parent c110c9b00e
commit 2c7e6071f5
13 changed files with 1005 additions and 640 deletions
@@ -0,0 +1,22 @@
import 'package:hooks_riverpod/hooks_riverpod.dart';
/// Whether to display the video part of a motion photo
final isSearchingProvider = StateNotifierProvider<IsSearching, bool>((ref) {
return IsSearching(ref);
});
class IsSearching extends StateNotifier<bool> {
IsSearching(this.ref) : super(false);
final Ref ref;
bool get value => state;
set value(bool value) {
state = value;
}
void toggle() {
state = !state;
}
}