|
@@ -212,12 +212,12 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
child: const Text('Aceptar'),
|
|
child: const Text('Aceptar'),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
backgroundColor:
|
|
backgroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.tertiary),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.tertiary),
|
|
foregroundColor:
|
|
foregroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.quaternary))),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.quaternary))),
|
|
],
|
|
],
|
|
);
|
|
);
|
|
},
|
|
},
|
|
@@ -358,11 +358,11 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
onPressed: () => Navigator.of(context).pop(false),
|
|
onPressed: () => Navigator.of(context).pop(false),
|
|
child: const Text('Cancelar'),
|
|
child: const Text('Cancelar'),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10),
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10),
|
|
),
|
|
),
|
|
- backgroundColor: WidgetStatePropertyAll(Colors.red),
|
|
|
|
- foregroundColor: WidgetStatePropertyAll(AppTheme.secondary),
|
|
|
|
|
|
+ backgroundColor: MaterialStatePropertyAll(Colors.red),
|
|
|
|
+ foregroundColor: MaterialStatePropertyAll(AppTheme.secondary),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(width: 10),
|
|
const SizedBox(width: 10),
|
|
@@ -380,11 +380,11 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
},
|
|
},
|
|
child: const Text('Guardar'),
|
|
child: const Text('Guardar'),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10),
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10),
|
|
),
|
|
),
|
|
- backgroundColor: WidgetStatePropertyAll(Colors.black),
|
|
|
|
- foregroundColor: WidgetStatePropertyAll(AppTheme.quaternary),
|
|
|
|
|
|
+ backgroundColor: MaterialStatePropertyAll(Colors.black),
|
|
|
|
+ foregroundColor: MaterialStatePropertyAll(AppTheme.quaternary),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
],
|
|
@@ -743,10 +743,11 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
child: const Text('Cancelar', style: TextStyle(fontSize: 18)),
|
|
child: const Text('Cancelar', style: TextStyle(fontSize: 18)),
|
|
onPressed: () => Navigator.of(context).pop(false),
|
|
onPressed: () => Navigator.of(context).pop(false),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(30, 20, 30, 20)),
|
|
EdgeInsets.fromLTRB(30, 20, 30, 20)),
|
|
- backgroundColor: WidgetStatePropertyAll(Colors.red),
|
|
|
|
- foregroundColor: WidgetStatePropertyAll(AppTheme.secondary),
|
|
|
|
|
|
+ backgroundColor: MaterialStatePropertyAll(Colors.red),
|
|
|
|
+ foregroundColor:
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.secondary),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(width: 100),
|
|
const SizedBox(width: 100),
|
|
@@ -756,12 +757,12 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
? () => Navigator.of(context).pop(true)
|
|
? () => Navigator.of(context).pop(true)
|
|
: null,
|
|
: null,
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(30, 20, 30, 20)),
|
|
EdgeInsets.fromLTRB(30, 20, 30, 20)),
|
|
- backgroundColor: WidgetStatePropertyAll(
|
|
|
|
|
|
+ backgroundColor: MaterialStatePropertyAll(
|
|
totalCompletado ? AppTheme.tertiary : Colors.grey),
|
|
totalCompletado ? AppTheme.tertiary : Colors.grey),
|
|
foregroundColor:
|
|
foregroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.quaternary),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.quaternary),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
],
|
|
@@ -1877,11 +1878,11 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
fontSize: 18, color: AppTheme.secondary)),
|
|
fontSize: 18, color: AppTheme.secondary)),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
- backgroundColor: WidgetStatePropertyAll(Colors.red),
|
|
|
|
|
|
+ backgroundColor: MaterialStatePropertyAll(Colors.red),
|
|
foregroundColor:
|
|
foregroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.secondary)),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.secondary)),
|
|
),
|
|
),
|
|
TextButton(
|
|
TextButton(
|
|
onPressed: () {
|
|
onPressed: () {
|
|
@@ -1926,12 +1927,12 @@ class _PedidoFormState extends State<PedidoForm> {
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
fontSize: 18, color: AppTheme.quaternary)),
|
|
fontSize: 18, color: AppTheme.quaternary)),
|
|
style: ButtonStyle(
|
|
style: ButtonStyle(
|
|
- padding: WidgetStatePropertyAll(
|
|
|
|
|
|
+ padding: MaterialStatePropertyAll(
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
EdgeInsets.fromLTRB(20, 10, 20, 10)),
|
|
backgroundColor:
|
|
backgroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.secondary),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.secondary),
|
|
foregroundColor:
|
|
foregroundColor:
|
|
- WidgetStatePropertyAll(AppTheme.secondary)),
|
|
|
|
|
|
+ MaterialStatePropertyAll(AppTheme.secondary)),
|
|
),
|
|
),
|
|
],
|
|
],
|
|
)
|
|
)
|