working login
This commit is contained in:
parent
47a758a33b
commit
3fff32f170
7 changed files with 162 additions and 32 deletions
15
lib/controllers/client_state_controller.dart
Normal file
15
lib/controllers/client_state_controller.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:nexus/models/client_state.dart";
|
||||
|
||||
class ClientStateController extends Notifier<ClientState?> {
|
||||
@override
|
||||
Null build() => null;
|
||||
|
||||
void set(ClientState newState) {
|
||||
state = newState;
|
||||
}
|
||||
|
||||
static final provider = NotifierProvider<ClientStateController, ClientState?>(
|
||||
ClientStateController.new,
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue