clear before notificaciones

This commit is contained in:
Felipe
2024-04-20 11:39:01 -05:00
parent c874178019
commit 34135b25e1
6 changed files with 34 additions and 21 deletions
+5 -4
View File
@@ -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();