statenotifier

This commit is contained in:
Christien Rioux 2023-09-30 21:00:22 -04:00
parent 8f0b4aaba0
commit 7a49497620
15 changed files with 28 additions and 56 deletions

View file

@ -207,7 +207,8 @@ class ChatComponentState extends ConsumerState<ChatComponent> {
IconButton(
icon: const Icon(Icons.close),
onPressed: () async {
activeChatState.add(null);
ref.read(activeChatStateProvider.notifier).state =
null;
}).paddingLTRB(16, 0, 16, 0)
]),
),