chore(HomeScreen): fix context unmounted
This commit is contained in:
@@ -34,7 +34,7 @@ class _GroupsScreenState extends State<GroupsScreen> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
interFamilyBloc = BlocProvider.of(context);
|
||||
const duration = Duration(seconds: 10);
|
||||
const duration = Duration(seconds: 5);
|
||||
getAllGroupsTimer = Timer.periodic(
|
||||
duration,
|
||||
(Timer t) => interFamilyBloc.getAllGroup(widget.role),
|
||||
|
||||
Reference in New Issue
Block a user