Delay bio auth (#642)

This commit is contained in:
dsvf
2025-08-17 07:06:24 +01:00
committed by GitHub
parent 60671fe461
commit 4a7827f41a
22 changed files with 1215 additions and 294 deletions

View File

@@ -7,19 +7,15 @@ part 'app.freezed.dart';
@freezed
abstract class AppState with _$AppState {
const factory AppState({@Default(false) bool desktopMode}) = _AppState;
const factory AppState() = _AppState;
}
@Riverpod(keepAlive: true)
class AppProvider extends _$AppProvider {
class AppStates extends _$AppStates {
static BuildContext? ctx;
@override
AppState build() {
return const AppState();
}
void setDesktop(bool desktopMode) {
state = state.copyWith(desktopMode: desktopMode);
}
}