dari gua
This commit is contained in:
parent
80fe215313
commit
783e623619
|
|
@ -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();
|
||||
// }
|
||||
// }),
|
||||
// )
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue