forked from Henry-Hiles/nexus
fix some stuff (maybe?)
This commit is contained in:
parent
a4d60e6c83
commit
3e82faeb86
10 changed files with 58 additions and 36 deletions
|
|
@ -5,14 +5,6 @@ import "package:nexus/controllers/selected_space_controller.dart";
|
|||
import "package:nexus/models/full_room.dart";
|
||||
|
||||
class SelectedRoomController extends AsyncNotifier<FullRoom?> {
|
||||
@override
|
||||
bool updateShouldNotify(
|
||||
AsyncValue<FullRoom?> previous,
|
||||
AsyncValue<FullRoom?> next,
|
||||
) =>
|
||||
previous.value?.avatar != next.value?.avatar ||
|
||||
previous.value?.title != next.value?.title;
|
||||
|
||||
@override
|
||||
Future<FullRoom?> build() async {
|
||||
final space = await ref.watch(SelectedSpaceController.provider.future);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue