phase3: nullfix field-formal field-nullable handler. 907 -> 872
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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}) :
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}) :
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user