mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-09-18 21:38:48 +00:00
Start to display user groups
This commit is contained in:
6
lib/utils/api_utils.dart
Normal file
6
lib/utils/api_utils.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// API utilities
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
/// Casting helper
|
||||
T cast<T>(dynamic val) => val is T ? val : null;
|
@@ -31,7 +31,11 @@ Widget buildLoadingPage({
|
||||
}
|
||||
|
||||
/// Build and return an error card
|
||||
Widget buildErrorCard(String message, {List<Widget> actions}) {
|
||||
Widget buildErrorCard(String message, {List<Widget> actions, bool hide = false}) {
|
||||
|
||||
if(hide)
|
||||
return Container();
|
||||
|
||||
return Card(
|
||||
elevation: 2.0,
|
||||
color: Colors.red,
|
||||
|
Reference in New Issue
Block a user