updated new flutter version
This commit is contained in:
@@ -187,7 +187,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
||||
Row row3 = Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
RaisedButton(
|
||||
ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context).detail,
|
||||
),
|
||||
@@ -203,7 +203,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
||||
row3.children.add(
|
||||
Padding(
|
||||
padding: EdgeInsets.only(left: 10.0),
|
||||
child: RaisedButton(
|
||||
child: ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context).comment,
|
||||
),
|
||||
@@ -225,7 +225,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
||||
if (order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
||||
&& order.status != Constants.STATUS_CANCELLED
|
||||
&& order.status != Constants.STATUS_COMPLETE) {
|
||||
row2.children.add(RaisedButton(
|
||||
row2.children.add(ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context)
|
||||
.pay_now,
|
||||
@@ -233,20 +233,24 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
color: Colors.redAccent,
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: Colors.redAccent,
|
||||
),
|
||||
onPressed: () {
|
||||
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
||||
},
|
||||
));
|
||||
} else {
|
||||
row2.children.add(RaisedButton(
|
||||
row2.children.add(ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context).order_again,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
color: Theme.of(context).primaryColor,
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: Theme.of(context).primaryColor,
|
||||
),
|
||||
onPressed: () {
|
||||
Utils.orderAgain(context, order.cartInfo);
|
||||
},
|
||||
@@ -254,14 +258,16 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
||||
}
|
||||
} else {
|
||||
row2.children.add(row3);
|
||||
row2.children.add(RaisedButton(
|
||||
row2.children.add(ElevatedButton(
|
||||
child: Text(
|
||||
S.of(context).order_again,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
color: Theme.of(context).primaryColor,
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: Theme.of(context).primaryColor,
|
||||
),
|
||||
onPressed: () {
|
||||
Utils.orderAgain(context, order.cartInfo);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user