actualiza todos los campos excepto schedule
This commit is contained in:
@@ -38,7 +38,7 @@ class GeneralDrawer extends StatelessWidget {
|
||||
return BlocBuilder<ProfessionalBloc, ProfessionalState>(
|
||||
builder: (context, professionalState) {
|
||||
return Drawer(
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
@@ -166,12 +166,12 @@ class GeneralDrawer extends StatelessWidget {
|
||||
|
||||
switch (user.proState) {
|
||||
case ProState.active:
|
||||
Navigator.pop(context);
|
||||
|
||||
context
|
||||
.read<ProfessionalBloc>()
|
||||
.add(const SwitchProModeEvent());
|
||||
|
||||
Navigator.pop(context);
|
||||
|
||||
break;
|
||||
case ProState.inactive:
|
||||
Navigator.push(
|
||||
|
||||
Reference in New Issue
Block a user