大幅変更&環境バージョンアップ
This commit is contained in:
22
lib/provider/game_state_provider.dart
Normal file
22
lib/provider/game_state_provider.dart
Normal file
@ -0,0 +1,22 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:gifunavi/model/game_state_instance.dart';
|
||||
|
||||
final gameStateNotifierProvider =
|
||||
StateNotifierProvider<GameStaticState, GameInsStatetance>((ref) {
|
||||
return GameStaticState();
|
||||
});
|
||||
|
||||
class GameStaticState extends StateNotifier<GameInsStatetance> {
|
||||
GameStaticState() : super(GameInsStatetance());
|
||||
|
||||
@override
|
||||
GameInsStatetance get state => super.state;
|
||||
|
||||
void startGame(GameInsStatetance gi) {
|
||||
state = gi;
|
||||
}
|
||||
|
||||
void doCheckin() {}
|
||||
|
||||
void makeGoal() {}
|
||||
}
|
||||
Reference in New Issue
Block a user