Commit acf54889 authored by Andre Luiz Rodrigues's avatar Andre Luiz Rodrigues Committed by Aléxia Dorneles
Browse files

Mudança do botão para "acompanhar pedido" conforme modelo Figma

parent bcfd5672
Showing with 5 additions and 12 deletions
+5 -12
......@@ -180,18 +180,12 @@ class _CartPageState extends State<CartScreen> {
}
checkOutAlertDialog(BuildContext context) {
Widget cancelButton = ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.grey.shade100, onPrimary: Colors.black),
child: Text("Cancelar"),
onPressed: () => Navigator.pop(context, false),
);
Widget buyButton = ElevatedButton(
Widget accompanyOrderButton = ElevatedButton(
style: ElevatedButton.styleFrom(primary: Colors.red),
child: Text("Comprar"),
child: Text("Acompanhar Pedido"),
onPressed: () {
Navigator.pop(context, false);
//Ir para a tela de acompanhar pedido
Navigator.pop(context);
},
);
......@@ -200,8 +194,7 @@ class _CartPageState extends State<CartScreen> {
content: Text(
"Obrigado por escolher a Apus Drones. Logo logo seu pedido chegará até você, mas até lá, o próximo passo é você acompanhar o status do seu pedido."),
actions: [
cancelButton,
buyButton,
accompanyOrderButton,
],
);
// show the dialog
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment