phase3: util_web + shop_scroll (custom scroll) null-safe; global Key? param fix

This commit is contained in:
2026-07-24 20:24:57 +08:00
parent f831fd1405
commit e2f815e141
133 changed files with 164 additions and 163 deletions

View File

@@ -10,7 +10,7 @@ class AttributeSelection extends StatelessWidget {
final Business business;
final GlobalKey startKey;
const AttributeSelection({Key key, this.product, this.business, this.startKey}) : super(key: key);
const AttributeSelection({Key? key, this.product, this.business, this.startKey}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -8,7 +8,7 @@ import '../widgets/desktop/desktop_blog.dart';
import '../widgets/mobile/mobile_blog.dart';
class Blog extends StatelessWidget {
final Key key;
final Key? key;
final int businessId;
const Blog({this.key, int businessId}) :

View File

@@ -22,7 +22,7 @@ class BuyService extends StatefulWidget {
final String domain;
final int sid;
const BuyService(this.gid, this.serviceName, {Key key, this.domain, this.sid = 0}) :
const BuyService(this.gid, this.serviceName, {Key? key, this.domain, this.sid = 0}) :
super(key: key);
@override

View File

@@ -15,7 +15,7 @@ import '../widgets/mobile/mobile_change_mobile_or_email.dart';
class ChangeMobileOrEmail extends StatelessWidget {
final bool isMobile;
const ChangeMobileOrEmail(this.isMobile, {Key key}) : super(key: key);
const ChangeMobileOrEmail(this.isMobile, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -11,7 +11,7 @@ import '../widgets/mobile/mobile_checkout.dart';
class Checkout extends StatelessWidget {
final int businessId;
const Checkout(this.businessId, {Key key}) :
const Checkout(this.businessId, {Key? key}) :
super(key: key);
@override

View File

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

View File

@@ -10,7 +10,7 @@ import '../widgets/mobile/mobile_coupons.dart';
class Coupons extends StatelessWidget {
final int contactId;
const Coupons(this.contactId, {Key key}) :
const Coupons(this.contactId, {Key? key}) :
super(key: key);

View File

@@ -11,7 +11,7 @@ import '../widgets/mobile/create_online_store_1.dart' as mobile;
class CreateOnlineStore1 extends StatefulWidget {
const CreateOnlineStore1({Key key}) :
const CreateOnlineStore1({Key? key}) :
super(key: key);
@override

View File

@@ -13,7 +13,7 @@ import '../widgets/general/navigationbar.dart';
import '../widgets/mobile/MobileBottomNav.dart';
class EditAddress extends StatelessWidget {
final Key key;
final Key? key;
final Address address;
final int businessId;
const EditAddress(this.address, {this.key, int businessId}) :

View File

@@ -12,7 +12,7 @@ import '../widgets/general/navigationbar.dart';
import '../widgets/mobile/MobileBottomNav.dart';
class ForgotPassword extends StatelessWidget {
const ForgotPassword({Key key}) : super(key: key);
const ForgotPassword({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -16,7 +16,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_igoshow_learn_more.dart';
class IGoShowLearnMore extends StatefulWidget {
const IGoShowLearnMore({Key key}) : super(key: key);
const IGoShowLearnMore({Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() {

View File

@@ -14,7 +14,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_login.dart';
class Login extends StatefulWidget {
final Key key;
final Key? key;
const Login({this.key}) : super(key: key);

View File

@@ -15,7 +15,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_me.dart';
class Me extends StatefulWidget {
final Key key;
final Key? key;
const Me({this.key}) : super(key: key);

View File

@@ -16,7 +16,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_minipos_learn_more.dart';
class MiniPosLearnMore extends StatefulWidget {
const MiniPosLearnMore({Key key}) : super(key: key);
const MiniPosLearnMore({Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() {

View File

@@ -8,7 +8,7 @@ import '../widgets/desktop/desktop_my_addresses.dart';
import '../widgets/mobile/mobile_my_addresses.dart';
class MyAddresses extends StatelessWidget {
final Key key;
final Key? key;
final int businessId;
const MyAddresses({this.key, int businessId}) :

View File

@@ -8,7 +8,7 @@ import '../widgets/desktop/desktop_my_support.dart';
import '../widgets/mobile/mobile_my_support.dart';
class MySupport extends StatelessWidget {
final Key key;
final Key? key;
final int businessId;
const MySupport({this.key, int businessId}) :

View File

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

View File

@@ -10,7 +10,7 @@ import '../widgets/mobile/mobile_new_comment.dart';
class NewComment extends StatelessWidget {
final int orderId;
const NewComment(this.orderId, {Key key}) :
const NewComment(this.orderId, {Key? key}) :
super(key: key);

View File

@@ -14,7 +14,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_new_ticket.dart';
class NewTicket extends StatefulWidget {
final Key key;
final Key? key;
final int businessId;
const NewTicket({this.key, int businessId}) :

View File

@@ -12,7 +12,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_new_user.dart';
class NewUser extends StatelessWidget {
const NewUser({Key key}) : super(key: key);
const NewUser({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -11,7 +11,7 @@ class OrderDetail extends StatelessWidget {
final int orderId;
final bool fromOrders;
const OrderDetail(this.orderId, {this.fromOrders = false, Key key}) :
const OrderDetail(this.orderId, {this.fromOrders = false, Key? key}) :
super(key: key);
@override

View File

@@ -10,7 +10,7 @@ import '../widgets/mobile/mobile_pay_now.dart';
class PayNow extends StatelessWidget {
final int orderId;
const PayNow(this.orderId, {Key key}) :
const PayNow(this.orderId, {Key? key}) :
super(key: key);

View File

@@ -15,7 +15,7 @@ class PlainPage extends StatefulWidget {
final int businessId;
final String slug;
const PlainPage(this.slug, {this.businessId, Key key}) :
const PlainPage(this.slug, {this.businessId, Key? key}) :
super(key: key);
@override

View File

@@ -13,7 +13,7 @@ class ProductDetailPage extends StatelessWidget {
final Business business;
final Product product;
const ProductDetailPage({this.business, this.product, Key key}) :
const ProductDetailPage({this.business, this.product, Key? key}) :
super(key: key);

View File

@@ -9,7 +9,7 @@ import '../widgets/mobile/product_search.dart' as mobile;
class ProductSearch extends StatelessWidget {
final Business business;
const ProductSearch(this.business, {Key key}) : super(key: key);
const ProductSearch(this.business, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -12,7 +12,7 @@ import '../widgets/mobile/mobile_renew_license.dart';
class RenewLicense extends StatefulWidget {
const RenewLicense({Key key}) :
const RenewLicense({Key? key}) :
super(key: key);
@override

View File

@@ -17,7 +17,7 @@ import '../widgets/mobile/mobile_renew_license.dart';
class RenewMiniOffice extends StatefulWidget {
final int gid;
const RenewMiniOffice(this.gid, {Key key}) :
const RenewMiniOffice(this.gid, {Key? key}) :
super(key: key);
@override

View File

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

View File

@@ -5,7 +5,7 @@ import '../widgets/mobile/mobile_search_place.dart';
import 'package:responsive_builder/responsive_builder.dart';
class SearchPlace extends StatelessWidget {
final Key key;
final Key? key;
final int businessId;
const SearchPlace(this.businessId, {this.key}) : super(key: key);

View File

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

View File

@@ -10,7 +10,7 @@ import '../widgets/mobile/shop.dart' as mobile;
class Shop extends StatefulWidget {
final int businessId;
const Shop({this.businessId, Key key}) : super(key: key);
const Shop({this.businessId, Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() => ShopState();

View File

@@ -15,7 +15,7 @@ import '../widgets/mobile/mobile_store_product_search.dart';
class StoreProductSearch extends StatelessWidget {
final Business business;
const StoreProductSearch(this.business, {Key key}) : super(key: key);
const StoreProductSearch(this.business, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -13,7 +13,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_user_profile.dart';
class UserProfile extends StatelessWidget {
const UserProfile({Key key}) : super(key: key);
const UserProfile({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {

View File

@@ -14,7 +14,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_view_blog.dart';
class ViewBlog extends StatefulWidget {
final Key key;
final Key? key;
final int bid;
const ViewBlog(this.bid, {this.key}) : super(key: key);

View File

@@ -14,7 +14,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_view_ticket.dart';
class ViewTicket extends StatefulWidget {
final Key key;
final Key? key;
final int ticketId;
const ViewTicket(this.ticketId, {this.key}) : super(key: key);