boton de sugerencias
This commit is contained in:
@@ -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 {
|
Future<void> _sendEmail(String recipients) async {
|
||||||
final Email email = Email(
|
final Email email = Email(
|
||||||
body: body,
|
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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user