Update
Logging data Try-catch function
This commit is contained in:
@@ -39,7 +39,7 @@ class _GroupsScreenState extends State<GroupsScreen> {
|
||||
const duration = Duration(seconds: 5);
|
||||
getAllGroupsTimer = Timer.periodic(
|
||||
duration,
|
||||
(Timer t) => interFamilyBloc.getAllGroup(widget.role),
|
||||
(Timer t) => interFamilyBloc.getAllGroup(context, widget.role),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class _GroupsScreenState extends State<GroupsScreen> {
|
||||
stream: interFamilyBloc.streamCurrentGroups,
|
||||
builder: (context, groupsSnapshot) {
|
||||
if (groupsSnapshot.data == null) {
|
||||
interFamilyBloc.getAllGroup(widget.role);
|
||||
interFamilyBloc.getAllGroup(context,widget.role);
|
||||
return const SharedLoadingAnimation();
|
||||
} else if (groupsSnapshot.data!.isEmpty) {
|
||||
return Center(
|
||||
|
||||
Reference in New Issue
Block a user