diff --git a/lib/src/components/drawer_menu.dart b/lib/src/components/drawer_menu.dart index d8bf02b..400fc9f 100644 --- a/lib/src/components/drawer_menu.dart +++ b/lib/src/components/drawer_menu.dart @@ -14,6 +14,7 @@ import 'package:prosappco/src/screens/profile.dart'; import 'package:prosappco/src/screens/profile_web.dart'; import 'package:prosappco/src/screens/reputation.dart'; import 'package:prosappco/src/screens/support.dart'; +import 'package:prosappco/src/screens/web_view.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:get/get.dart'; @@ -46,7 +47,7 @@ class _DrawerMenuState extends State { Future _irSugerencias() async { const url = - 'https://admin.prosapp.co/sugerencias '; // Aquí debes poner la URL a la que quieres dirigirte + 'https://admin.prosapp.co/sugerencias'; // Aquí debes poner la URL a la que quieres dirigirte if (await canLaunch(url)) { await launch(url); } else { @@ -224,7 +225,22 @@ class _DrawerMenuState extends State { ), ), ListTile( - onTap: _irSugerencias, + onTap: () { + if (kIsWeb) { + _irSugerencias(); + } else { + Navigator.push( + context, + CupertinoPageRoute( + builder: (BuildContext context) { + return WebViewScreen( + label: 'Sugerencias', + link: 'https://admin.prosapp.co/sugerencias'); + }, + ), + ); + } + }, leading: const Icon( Icons.campaign_outlined, color: Colors.black, diff --git a/lib/src/components/drawer_professional.dart b/lib/src/components/drawer_professional.dart index 09700b5..fabc0c4 100644 --- a/lib/src/components/drawer_professional.dart +++ b/lib/src/components/drawer_professional.dart @@ -14,6 +14,7 @@ import 'package:prosappco/src/screens/profile.dart'; import 'package:prosappco/src/screens/profile_pro.dart'; import 'package:prosappco/src/screens/profile_pro_web.dart'; import 'package:prosappco/src/screens/reputacion_pro.dart'; +import 'package:prosappco/src/screens/web_view.dart'; import '../models/scores_model.dart'; import '../screens/configuracion.dart'; import '../screens/support.dart'; @@ -211,7 +212,22 @@ class _DrawerProfessionalState extends State { ), ), ListTile( - onTap: _irSugerencias, + onTap: () { + if (kIsWeb) { + _irSugerencias(); + } else { + Navigator.push( + context, + CupertinoPageRoute( + builder: (BuildContext context) { + return WebViewScreen( + label: 'Sugerencias', + link: 'https://admin.prosapp.co/sugerencias'); + }, + ), + ); + } + }, leading: const Icon( Icons.campaign_outlined, color: Colors.black, diff --git a/lib/src/screens/service.dart b/lib/src/screens/service.dart index 8b77bbe..427c718 100644 --- a/lib/src/screens/service.dart +++ b/lib/src/screens/service.dart @@ -725,6 +725,8 @@ class _ServiceScreenState extends State { child: Column( children: [ TextFormField( + controller: _serviceTypeController, + readOnly: true, onTap: () async { final String? serviceType = await Navigator.push( @@ -743,21 +745,11 @@ class _ServiceScreenState extends State { }); } }, - controller: _serviceTypeController, - style: const TextStyle( - color: Colors.black87, - fontWeight: FontWeight.w600, - ), - readOnly: true, - decoration: InputDecoration( - hintText: _serviceType == '' - ? 'Servicio' - : _serviceType, - border: InputBorder.none, - enabledBorder: InputBorder.none, - ), + decoration: const InputDecoration( + prefixIcon: Icon(Icons.room_service_rounded), + suffixIcon: Icon(Icons.arrow_drop_down), + hintText: 'Tipo de Servicio'), ), - const SizedBox(height: 15), Column( children: [ @@ -1077,7 +1069,7 @@ class _ServiceScreenState extends State { ), ), ), - //Text('${_selectedDate?.weekday}'), + const SizedBox(height: 15), ], ), ),