fix state disposal of sidebar on mobile layouts

This commit is contained in:
Henry Hiles 2025-11-23 13:22:01 -05:00
commit 0c58ae562d
No known key found for this signature in database
4 changed files with 43 additions and 14 deletions

View file

@ -0,0 +1,12 @@
import "package:flutter_riverpod/flutter_riverpod.dart";
class SelectedRoomController extends Notifier<int> {
@override
int build() => 0;
void set(int value) => state = value;
static final provider = NotifierProvider<SelectedRoomController, int>(
SelectedRoomController.new,
);
}