boton de sugerencias

This commit is contained in:
Felipe
2023-07-12 09:07:05 -05:00
parent 2224c9de0b
commit 10f93e495a
+31
View File
@@ -27,6 +27,16 @@ class SsupportStateScreen extends State<SupportScreen> {
}
}
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';
}
}
Future<void> _sendEmail(String recipients) async {
final Email email = Email(
body: body,
@@ -156,6 +166,27 @@ class SsupportStateScreen extends State<SupportScreen> {
],
),
),
Padding(
padding: const EdgeInsets.only(bottom: 15),
child: ElevatedButton(
onPressed: _irSugerencias,
style: ElevatedButton.styleFrom(
padding:
const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
backgroundColor:
const Color(0xFF2BA4EC), // Color de fondo del botón
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15), // Bordes redondeados
),
),
child: const Text(
'Sugerencias',
style: TextStyle(
fontSize: 16,
),
),
),
)
],
),
);