phase3: FIX arg-bang regex (missing \] in char class skipped subscripts). 235->183

This commit is contained in:
2026-07-31 14:57:23 +08:00
parent 70076d71c1
commit 18abf4eb82
15 changed files with 51 additions and 51 deletions

View File

@@ -757,7 +757,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
subtotal = 0.0;
for (var i = 0; i < cartInfo!.productList!.length; i++) {
subtotal += cartInfo!.productList![i].totalPrice;
subtotal += cartInfo!.productList![i].totalPrice!;
column.children.add(lineItem(cartInfo!.productList![i]));
}
column.children.add(GestureDetector(
@@ -863,7 +863,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
Container(
alignment: Alignment.centerRight,
child: Text(
S.of(context).extra_fee_token(cartInfo!.extraFeeList![i].name, cartInfo!.extraFeeList![i].rate),
S.of(context).extra_fee_token(cartInfo!.extraFeeList![i].name!, cartInfo!.extraFeeList![i].rate!),
style: TextStyle(
color: Colors.grey,
),
@@ -1342,7 +1342,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
child: Container(
padding: EdgeInsets.only(left: 12.0, right: 12.0, top: 12.0, bottom: 12.0),
child: Text(
bookingDateTime.bookTimes![position].viewTime,
bookingDateTime.bookTimes![position].viewTime!,
),
decoration: BoxDecoration(
border: Border(
@@ -1581,7 +1581,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
for (var i = 0; i < coupons!.length; i++) {
if (selectedCoupon == coupons![i].id) {
if (coupons![i].isPercentage == true) {
return S.of(context).percentage_discount_token2(couponDiscountAmount.toStringAsFixed(2), coupons![i].valueAmount);
return S.of(context).percentage_discount_token2(couponDiscountAmount.toStringAsFixed(2), coupons![i].valueAmount!);
} else {
return S.of(context).discount_amount_token(couponDiscountAmount.toStringAsFixed(2));
}
@@ -1957,7 +1957,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
),
));
for (int i = 0; i < cartInfo!.businessInfo!.quickInputs!.length; i++) {
String qi = cartInfo!.businessInfo!.quickInputs![i].value;
String qi = cartInfo!.businessInfo!.quickInputs![i].value!;
w.children.add(TextButton(
child: Text(
qi,

View File

@@ -181,7 +181,7 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
row.children.add(Expanded(
child: Container(
child: Text(
order!.cartInfo!.productList![0].name,
order!.cartInfo!.productList![0].name!,
style: TextStyle(
fontSize: 14.0,
),

View File

@@ -455,7 +455,7 @@ class DesktopProductDetailPageState extends State<DesktopProductDetailPage>
images.add(productDetail.image!);
for (var i = 0; i < productDetail.images!.length; i++) {
// print('>>https:' + productDetail.images[i].image);
images.add(productDetail.images![i].image);
images.add(productDetail.images![i].image!);
}
for (var i = 0; i < images.length; i++) {

View File

@@ -223,7 +223,7 @@ class ShopState extends State<Shop> {
.map((i) => CategoryProducts.fromJson(i))
.toList();
if (categoryId == 0 && displayProductByCategoryClick) {
categoryId = _categoryProducts[0].id;
categoryId = _categoryProducts[0].id!;
}
data = value;
});

View File

@@ -347,7 +347,7 @@ class ShopProductsState extends State<ShopProducts> {
}
displayProductByCategoryClickIndicator = '';
if (categoryId == 0 && displayProductByCategoryClick) {
categoryId = _categoryProducts[0].id;
categoryId = _categoryProducts[0].id!;
}
setState(() {

View File

@@ -129,7 +129,7 @@ class ShopPromoteState extends State<ShopPromote> {
GestureDetector(
child: Container(
child: Util.showImage(
_business.promoProducts![i].imagePath,
_business.promoProducts![i].imagePath!,
width: 120.0,
),
),
@@ -139,7 +139,7 @@ class ShopPromoteState extends State<ShopPromote> {
),
Container(
child: Text(
_business.promoProducts![i].name,
_business.promoProducts![i].name!,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontSize: 14.0),
@@ -149,7 +149,7 @@ class ShopPromoteState extends State<ShopPromote> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
ShowPrice(
_business.promoProducts![i].price,
_business.promoProducts![i].price!,
currencySign: '\$',
fontWeight: FontWeight.bold,
smallFontSize: 15,