chore(HomeScreen): fix context unmounted

This commit is contained in:
anhtunz
2025-05-26 14:08:30 +07:00
parent 01ae020374
commit 677a7c4d4a
6 changed files with 69 additions and 59 deletions

View File

@@ -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),