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 onPrimary: Colors.white
), ),
), ),
home: BlocBuilder<AuthenticationBloc, AuthenticationState>( home: HomeScreen()
builder: ((context, state){ // home: BlocBuilder<AuthenticationBloc, AuthenticationState>(
if(state.status == AuthenticationStatus.authenticated){ // builder: ((context, state){
return HomeScreen(); // if(state.status == AuthenticationStatus.authenticated){
} else { // return HomeScreen();
return WelcomeScreen(); // } else {
} // return WelcomeScreen();
}), // }
) // }),
// )
); );
} }
} }