update
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/reputation.dart';
|
||||
import 'package:prosappco/src/screens/support.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class DrawerMenu extends StatefulWidget {
|
||||
@@ -43,6 +44,16 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _irSugerencias() async {
|
||||
const url =
|
||||
'https://admin.prosapp.co/sugerencias '; // Aquí debes poner la URL a la que quieres dirigirte
|
||||
if (await canLaunch(url)) {
|
||||
await launch(url);
|
||||
} else {
|
||||
throw 'No se pudo abrir la URL $url';
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final User? currentUser = FirebaseAuth.instance.currentUser;
|
||||
@@ -212,6 +223,17 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
||||
style: TextStyle(fontSize: 15),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
onTap: _irSugerencias,
|
||||
leading: const Icon(
|
||||
Icons.campaign_outlined,
|
||||
color: Colors.black,
|
||||
),
|
||||
title: const Text(
|
||||
'Sugerencias',
|
||||
style: TextStyle(fontSize: 15),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
|
||||
Reference in New Issue
Block a user