mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
22 lines
466 B
Dart
22 lines
466 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'app.g.dart';
|
|
part 'app.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class AppState with _$AppState {
|
|
const factory AppState() = _AppState;
|
|
}
|
|
|
|
@Riverpod(keepAlive: true)
|
|
class AppStates extends _$AppStates {
|
|
static BuildContext? ctx;
|
|
|
|
@override
|
|
AppState build() {
|
|
return const AppState();
|
|
}
|
|
}
|