From ba02ccbb3cdf34c8be5bbf019a25df6e4c8614db Mon Sep 17 00:00:00 2001 From: Moe Date: Thu, 12 May 2022 10:28:47 +0700 Subject: [PATCH] Sync transaction box with flutter_lints v2.0.1 --- lib/components/transaction_box.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/transaction_box.dart b/lib/components/transaction_box.dart index bdbcfe6..d9fe509 100644 --- a/lib/components/transaction_box.dart +++ b/lib/components/transaction_box.dart @@ -66,7 +66,7 @@ class _TransactionBoxState extends State { 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 { 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"], );