phase3: nullfix field-formal field-nullable handler. 907 -> 872

This commit is contained in:
2026-07-25 18:14:55 +08:00
parent fce670664b
commit c21ccbd54d
38 changed files with 151 additions and 131 deletions

View File

@@ -6,9 +6,9 @@ import '../models/business.dart';
import '../models/product.dart';
class AttributeSelection extends StatelessWidget {
final Product product;
final Business business;
final GlobalKey startKey;
final Product? product;
final Business? business;
final GlobalKey? startKey;
const AttributeSelection({Key? key, this.product, this.business, this.startKey}) : super(key: key);

View File

@@ -19,7 +19,7 @@ import '../widgets/mobile/mobile_renew_license.dart';
class BuyService extends StatefulWidget {
final int gid;
final String serviceName;
final String domain;
final String? domain;
final int sid;
const BuyService(this.gid, this.serviceName, {Key? key, this.domain, this.sid = 0}) :

View File

@@ -12,7 +12,7 @@ import '../widgets/desktop/desktop_contact_us.dart';
import '../widgets/mobile/mobile_contact_us.dart';
class ContactUs extends StatefulWidget {
final int businessId;
final int? businessId;
const ContactUs({this.businessId, Key? key}) :
super(key: key);

View File

@@ -8,8 +8,8 @@ import '../widgets/mobile/mobile_new_address.dart';
class NewAddress extends StatelessWidget {
final Key? key;
final LocatedAddress locatedAddress;
final int businessId;
final LocatedAddress? locatedAddress;
final int? businessId;
const NewAddress({this.key, this.locatedAddress, this.businessId}) : super(key: key);
@override

View File

@@ -12,7 +12,7 @@ import '../utils/http_util.dart';
import '../utils/utils.dart';
class PlainPage extends StatefulWidget {
final int businessId;
final int? businessId;
final String slug;
const PlainPage(this.slug, {this.businessId, Key? key}) :

View File

@@ -10,8 +10,8 @@ import '../widgets/desktop/desktop_product_detail_page.dart';
import '../widgets/mobile/mobile_product_detail_page.dart';
class ProductDetailPage extends StatelessWidget {
final Business business;
final Product product;
final Business? business;
final Product? product;
const ProductDetailPage({this.business, this.product, Key? key}) :
super(key: key);

View File

@@ -13,7 +13,7 @@ import '../widgets/mobile/mobile_reset_password.dart';
class ResetPassword extends StatelessWidget {
final String mobile;
final String code;
final String? code;
const ResetPassword(this.mobile, {Key? key, this.code}) : super(key: key);
@override

View File

@@ -13,7 +13,7 @@ import '../widgets/mobile/mobile_set_password.dart';
class SetPassword extends StatelessWidget {
final String mobile;
final String code;
final String? code;
const SetPassword(this.mobile, {Key? key, this.code}) : super(key: key);
@override

View File

@@ -8,7 +8,7 @@ import '../widgets/desktop/shop.dart' as desktop;
import '../widgets/mobile/shop.dart' as mobile;
class Shop extends StatefulWidget {
final int businessId;
final int? businessId;
const Shop({this.businessId, Key? key}) : super(key: key);