|
@@ -135,9 +135,8 @@ class TablaDetalles extends StatelessWidget {
|
|
@override
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
return Container(
|
|
- padding: const EdgeInsets.all(10),
|
|
|
|
decoration: BoxDecoration(
|
|
decoration: BoxDecoration(
|
|
- color: Colors.white,
|
|
|
|
|
|
+ color: Color.fromARGB(255, 247, 249, 250),
|
|
boxShadow: [
|
|
boxShadow: [
|
|
BoxShadow(
|
|
BoxShadow(
|
|
color: Colors.grey.withOpacity(0.2),
|
|
color: Colors.grey.withOpacity(0.2),
|
|
@@ -153,8 +152,6 @@ class TablaDetalles extends StatelessWidget {
|
|
padding: const EdgeInsets.all(16),
|
|
padding: const EdgeInsets.all(16),
|
|
decoration: BoxDecoration(
|
|
decoration: BoxDecoration(
|
|
color: table.activa! ? Colors.blue : Colors.grey,
|
|
color: table.activa! ? Colors.blue : Colors.grey,
|
|
- borderRadius:
|
|
|
|
- const BorderRadius.vertical(top: Radius.circular(10)),
|
|
|
|
),
|
|
),
|
|
child: Row(
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
@@ -227,13 +224,13 @@ class TablaDetalles extends StatelessWidget {
|
|
children: [
|
|
children: [
|
|
Row(
|
|
Row(
|
|
children: [
|
|
children: [
|
|
- Text(
|
|
|
|
- "Estatus: ${status.toString().split('.').last}",
|
|
|
|
- style: const TextStyle(
|
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
|
- color: Colors.black,
|
|
|
|
- ),
|
|
|
|
- ),
|
|
|
|
|
|
+ // Text(
|
|
|
|
+ // "Estatus: ${status.toString().split('.').last}",
|
|
|
|
+ // style: const TextStyle(
|
|
|
|
+ // fontWeight: FontWeight.bold,
|
|
|
|
+ // color: Colors.black,
|
|
|
|
+ // ),
|
|
|
|
+ // ),
|
|
],
|
|
],
|
|
),
|
|
),
|
|
// const SizedBox(height: 16),
|
|
// const SizedBox(height: 16),
|
|
@@ -243,13 +240,6 @@ class TablaDetalles extends StatelessWidget {
|
|
padding: const EdgeInsets.all(16),
|
|
padding: const EdgeInsets.all(16),
|
|
decoration: BoxDecoration(
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
color: Colors.white,
|
|
- boxShadow: [
|
|
|
|
- BoxShadow(
|
|
|
|
- color: Colors.grey.withOpacity(0.2),
|
|
|
|
- blurRadius: 1,
|
|
|
|
- spreadRadius: 1,
|
|
|
|
- )
|
|
|
|
- ],
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
borderRadius: BorderRadius.circular(10),
|
|
border: Border.all(color: Colors.grey.shade200),
|
|
border: Border.all(color: Colors.grey.shade200),
|
|
),
|
|
),
|
|
@@ -260,6 +250,7 @@ class TablaDetalles extends StatelessWidget {
|
|
const Text("Pedido Actual",
|
|
const Text("Pedido Actual",
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
fontWeight: FontWeight.bold,
|
|
|
|
+ fontSize: 20,
|
|
color: Colors.black,
|
|
color: Colors.black,
|
|
)),
|
|
)),
|
|
GestureDetector(
|
|
GestureDetector(
|
|
@@ -268,8 +259,8 @@ class TablaDetalles extends StatelessWidget {
|
|
.pushNamed('creacion-pedido');
|
|
.pushNamed('creacion-pedido');
|
|
},
|
|
},
|
|
child: const Row(children: [
|
|
child: const Row(children: [
|
|
- const Text("Ver detalle"),
|
|
|
|
- const Icon(Icons.arrow_forward_ios_rounded),
|
|
|
|
|
|
+ Text("Ver detalle"),
|
|
|
|
+ Icon(Icons.arrow_forward_ios_rounded),
|
|
]),
|
|
]),
|
|
)
|
|
)
|
|
]),
|
|
]),
|
|
@@ -291,6 +282,23 @@ class TablaDetalles extends StatelessWidget {
|
|
precio: "15.20",
|
|
precio: "15.20",
|
|
cantidad: 1,
|
|
cantidad: 1,
|
|
),
|
|
),
|
|
|
|
+ const SizedBox(height: 10),
|
|
|
|
+ const Divider(),
|
|
|
|
+ const Row(
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
+ children: [
|
|
|
|
+ Text(
|
|
|
|
+ "Total",
|
|
|
|
+ style: TextStyle(
|
|
|
|
+ fontSize: 20, fontWeight: FontWeight.bold),
|
|
|
|
+ ),
|
|
|
|
+ Text(
|
|
|
|
+ "\$45.60",
|
|
|
|
+ style: TextStyle(
|
|
|
|
+ fontSize: 20, fontWeight: FontWeight.bold),
|
|
|
|
+ ),
|
|
|
|
+ ],
|
|
|
|
+ )
|
|
]),
|
|
]),
|
|
),
|
|
),
|
|
|
|
|
|
@@ -338,14 +346,16 @@ class TableCard extends StatelessWidget {
|
|
case EstadoPedido.preparacion:
|
|
case EstadoPedido.preparacion:
|
|
backgroundColor = const Color.fromARGB(255, 243, 232, 255);
|
|
backgroundColor = const Color.fromARGB(255, 243, 232, 255);
|
|
iconColor = Colors.deepPurple;
|
|
iconColor = Colors.deepPurple;
|
|
- icon = Icons.kitchen_rounded;
|
|
|
|
- cardColor = const Color.fromARGB(255, 243, 232, 255);
|
|
|
|
|
|
+ icon = Icons.restaurant_rounded;
|
|
|
|
+ cardColor = Colors.white;
|
|
|
|
+ // cardColor = const Color.fromARGB(255, 243, 232, 255);
|
|
break;
|
|
break;
|
|
case EstadoPedido.cobrado:
|
|
case EstadoPedido.cobrado:
|
|
backgroundColor = const Color.fromARGB(255, 255, 238, 213);
|
|
backgroundColor = const Color.fromARGB(255, 255, 238, 213);
|
|
iconColor = Colors.amber;
|
|
iconColor = Colors.amber;
|
|
icon = Icons.attach_money_rounded;
|
|
icon = Icons.attach_money_rounded;
|
|
- cardColor = const Color.fromARGB(255, 255, 238, 213);
|
|
|
|
|
|
+ cardColor = Colors.white;
|
|
|
|
+ // cardColor = const Color.fromARGB(255, 255, 238, 213);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
backgroundColor = Colors.grey.shade200;
|
|
backgroundColor = Colors.grey.shade200;
|
|
@@ -356,6 +366,7 @@ class TableCard extends StatelessWidget {
|
|
}
|
|
}
|
|
|
|
|
|
return Card(
|
|
return Card(
|
|
|
|
+ borderOnForeground: false,
|
|
color: cardColor,
|
|
color: cardColor,
|
|
child: Column(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
@@ -384,6 +395,18 @@ class TableCard extends StatelessWidget {
|
|
fontSize: 20,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w500,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
|
|
+ ),
|
|
|
|
+ Container(
|
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
|
|
|
+ decoration: BoxDecoration(
|
|
|
|
+ color: backgroundColor,
|
|
|
|
+ borderRadius: BorderRadius.circular(20),
|
|
|
|
+ ),
|
|
|
|
+ child: Text(status.toString().split('.').last,
|
|
|
|
+ style: TextStyle(
|
|
|
|
+ color: iconColor,
|
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
|
+ )),
|
|
)
|
|
)
|
|
],
|
|
],
|
|
),
|
|
),
|