uptadwe
This commit is contained in:
@@ -14,6 +14,7 @@ import 'package:prosappco/src/screens/profile.dart';
|
|||||||
import 'package:prosappco/src/screens/profile_web.dart';
|
import 'package:prosappco/src/screens/profile_web.dart';
|
||||||
import 'package:prosappco/src/screens/reputation.dart';
|
import 'package:prosappco/src/screens/reputation.dart';
|
||||||
import 'package:prosappco/src/screens/support.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:url_launcher/url_launcher.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
|||||||
|
|
||||||
Future<void> _irSugerencias() async {
|
Future<void> _irSugerencias() async {
|
||||||
const url =
|
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)) {
|
if (await canLaunch(url)) {
|
||||||
await launch(url);
|
await launch(url);
|
||||||
} else {
|
} else {
|
||||||
@@ -224,7 +225,22 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
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(
|
leading: const Icon(
|
||||||
Icons.campaign_outlined,
|
Icons.campaign_outlined,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
@@ -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.dart';
|
||||||
import 'package:prosappco/src/screens/profile_pro_web.dart';
|
import 'package:prosappco/src/screens/profile_pro_web.dart';
|
||||||
import 'package:prosappco/src/screens/reputacion_pro.dart';
|
import 'package:prosappco/src/screens/reputacion_pro.dart';
|
||||||
|
import 'package:prosappco/src/screens/web_view.dart';
|
||||||
import '../models/scores_model.dart';
|
import '../models/scores_model.dart';
|
||||||
import '../screens/configuracion.dart';
|
import '../screens/configuracion.dart';
|
||||||
import '../screens/support.dart';
|
import '../screens/support.dart';
|
||||||
@@ -211,7 +212,22 @@ class _DrawerProfessionalState extends State<DrawerProfessional> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
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(
|
leading: const Icon(
|
||||||
Icons.campaign_outlined,
|
Icons.campaign_outlined,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|||||||
@@ -725,6 +725,8 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
|
controller: _serviceTypeController,
|
||||||
|
readOnly: true,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final String? serviceType =
|
final String? serviceType =
|
||||||
await Navigator.push(
|
await Navigator.push(
|
||||||
@@ -743,21 +745,11 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
controller: _serviceTypeController,
|
decoration: const InputDecoration(
|
||||||
style: const TextStyle(
|
prefixIcon: Icon(Icons.room_service_rounded),
|
||||||
color: Colors.black87,
|
suffixIcon: Icon(Icons.arrow_drop_down),
|
||||||
fontWeight: FontWeight.w600,
|
hintText: 'Tipo de Servicio'),
|
||||||
),
|
|
||||||
readOnly: true,
|
|
||||||
decoration: InputDecoration(
|
|
||||||
hintText: _serviceType == ''
|
|
||||||
? 'Servicio'
|
|
||||||
: _serviceType,
|
|
||||||
border: InputBorder.none,
|
|
||||||
enabledBorder: InputBorder.none,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 15),
|
const SizedBox(height: 15),
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -1077,7 +1069,7 @@ class _ServiceScreenState extends State<ServiceScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
//Text('${_selectedDate?.weekday}'),
|
const SizedBox(height: 15),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user