This commit is contained in:
Mochamad ongki ramadani 2026-02-14 21:01:55 +07:00
parent 80fe215313
commit 783e623619
1 changed files with 10 additions and 9 deletions

View File

@ -20,15 +20,16 @@ class MyAppView extends StatelessWidget {
onPrimary: Colors.white
),
),
home: BlocBuilder<AuthenticationBloc, AuthenticationState>(
builder: ((context, state){
if(state.status == AuthenticationStatus.authenticated){
return HomeScreen();
} else {
return WelcomeScreen();
}
}),
)
home: HomeScreen()
// home: BlocBuilder<AuthenticationBloc, AuthenticationState>(
// builder: ((context, state){
// if(state.status == AuthenticationStatus.authenticated){
// return HomeScreen();
// } else {
// return WelcomeScreen();
// }
// }),
// )
);
}
}