feat: init Party Room

This commit is contained in:
xkeyC
2025-11-18 23:10:04 +08:00
parent f98235f2f3
commit aaaee30368
34 changed files with 10999 additions and 146 deletions

View File

@@ -33,8 +33,10 @@ class Nav extends _$Nav {
if (!_mounted) return;
try {
final r = await UDBNavApi.getNavItems(pageNo: pageNo);
if (!_mounted) return;
state = state.copyWith(items: r.docs, errorInfo: "");
} catch (e) {
if (!_mounted) return;
state = state.copyWith(errorInfo: e.toString());
}
}

View File

@@ -40,7 +40,7 @@ final class NavProvider extends $NotifierProvider<Nav, NavState> {
}
}
String _$navHash() => r'00c4da8fdd37214cda179a81ece3676add7aab53';
String _$navHash() => r'bd3773505d6ae53f577ac6f3bfe711b320faa524';
abstract class _$Nav extends $Notifier<NavState> {
NavState build();