clear before notificaciones
This commit is contained in:
+5
-4
@@ -37,16 +37,17 @@ class MyAppView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
home: BlocBuilder<AuthenticationBloc, AuthenticationState>(
|
||||
builder: (context, state) {
|
||||
return getScreen(state);
|
||||
}),
|
||||
builder: (context, state) {
|
||||
return getScreen(state);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
getScreen(AuthenticationState state) {
|
||||
switch (state.status) {
|
||||
case AuthenticationStatus.authenticated:
|
||||
return const HomeScreen();
|
||||
return HomeScreen();
|
||||
|
||||
case AuthenticationStatus.unauthenticated:
|
||||
return WelcomeScreen();
|
||||
|
||||
Reference in New Issue
Block a user