Sync transaction box with flutter_lints v2.0.1

This commit is contained in:
Moe Poi ~ 2022-05-12 10:28:47 +07:00
parent 1da1b3b92d
commit ba02ccbb3c

View file

@ -66,7 +66,7 @@ class _TransactionBoxState extends State<TransactionBox> {
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('#' + widget.orderId.toString(), style: const TextStyle(color: Colors.white),),
Text('#${widget.orderId}', style: const TextStyle(color: Colors.white),),
Text(widget.status, style: const TextStyle(color: Colors.white),)
],
),
@ -128,7 +128,7 @@ class _TransactionBoxState extends State<TransactionBox> {
if (snapshot.hasData) {
var productData = snapshot.data;
return TransactionProductBox(
imageUrl: 'https://nekoya.moe.team/img/' + productData[0]['IMAGE'],
imageUrl: 'https://nekoya.moe.team/img/${productData[0]['IMAGE']}',
title: productData[0]['TITLE'],
quantity: orderData[index]["quantity"],
);