This commit is contained in:
Felipe
2023-07-31 12:49:47 -05:00
parent 809873894c
commit b0d88fc68a
4 changed files with 26 additions and 34 deletions
+22
View File
@@ -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(