phase3: nullfix arg-bang handler (argument_type/invalid_assignment). 872 -> 621

This commit is contained in:
2026-07-25 18:16:40 +08:00
parent c21ccbd54d
commit a76b872966
65 changed files with 282 additions and 257 deletions

View File

@@ -123,7 +123,7 @@ class MobileCouponsState extends State<MobileCoupons> {
overflow: TextOverflow.ellipsis,
),
Text(
coupon.description,
coupon.description!,
style: TextStyle(
fontSize: 12.0,
color: Colors.black26,
@@ -162,7 +162,7 @@ class MobileCouponsState extends State<MobileCoupons> {
),
Container(
child: Text(
'${Utils.smartRound(coupon.valueAmount, 2)}',
'${Utils.smartRound(coupon.valueAmount!, 2)}',
style: TextStyle(
fontSize: 28.0,
color: Colors.redAccent,
@@ -177,7 +177,7 @@ class MobileCouponsState extends State<MobileCoupons> {
children: <Widget>[
Container(
child: Text(
'${Utils.smartRound(coupon.valueAmount, 2)}',
'${Utils.smartRound(coupon.valueAmount!, 2)}',
style: TextStyle(
fontSize: 28.0,
color: Colors.redAccent,
@@ -199,7 +199,7 @@ class MobileCouponsState extends State<MobileCoupons> {
Container(
child: Text(
coupon.minAmount! > 0 ?
S.of(context).available_for_order_over_token(coupon.minAmount) :
S.of(context).available_for_order_over_token(coupon.minAmount!) :
S.of(context).no_restriction,
style: TextStyle(
fontSize: 10.0,
@@ -238,7 +238,7 @@ class MobileCouponsState extends State<MobileCoupons> {
child: Text(
coupon.expirationDate == null || coupon.expirationDate!.length == 0 ?
S.of(context).no_expiration :
S.of(context).expiration_date_token(coupon.expirationDate),
S.of(context).expiration_date_token(coupon.expirationDate!),
style: TextStyle(
color: Colors.black26,
fontSize: 15.0,