Commit 7c5cd9f1 authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: state actions navigate to home after authenticated called during build

parent e55d31ba
......@@ -15,7 +15,12 @@ class ListScreen extends StatefulWidget {
class _ListScreen extends State<ListScreen> {
@override
void initState() {
Future.delayed(
Duration.zero,
() {
Provider.of<NavigationsProvider>(context, listen: false).navigate(0);
},
);
super.initState();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment