add Party Room Module

This commit is contained in:
2024-01-07 14:57:49 +08:00
parent 71eadd86f5
commit 7240878148
13 changed files with 307 additions and 11 deletions

View File

@ -52,7 +52,9 @@ class BaseUIModel extends ChangeNotifier {
}
Future<T?> handleError<T>(Future<T> Function() requestFunc,
{bool showFullScreenError = false, String? errorOverride}) async {
{bool showFullScreenError = false,
String? errorOverride,
bool noAlert = false}) async {
uiErrorMsg = "";
if (mounted) notifyListeners();
try {
@ -72,7 +74,7 @@ class BaseUIModel extends ChangeNotifier {
notifyListeners();
return null;
}
showToast(context!, errorOverride ?? errorMsg);
if (!noAlert) showToast(context!, errorOverride ?? errorMsg);
}
return null;
}