fix puntuaciones

This commit is contained in:
Juan Felipe Duarte
2023-04-28 15:56:54 -05:00
parent b3d31d3a8d
commit 9354350b26
12 changed files with 239 additions and 61 deletions
+9 -3
View File
@@ -199,7 +199,14 @@ class _DrawerProfessionalState extends State<DrawerProfessional> {
return Container(
color: const Color(0xFF2BA4EC),
child: ListTile(
onTap: () {},
onTap: () {
if (ModalRoute.of(context)?.settings.name !=
'/solicitud') {
Navigator.pushNamed(context, '/solicitud');
} else {
Scaffold.of(context).openEndDrawer();
}
},
trailing: const Icon(
Icons.keyboard_arrow_right,
color: Colors.white,
@@ -239,8 +246,7 @@ class _DrawerProfessionalState extends State<DrawerProfessional> {
context,
CupertinoPageRoute(
builder: (BuildContext context) {
return ReputationScreen(
professional: professional!);
return ReputationScreen();
},
),
);