phase3: util_web + shop_scroll (custom scroll) null-safe; global Key? param fix
This commit is contained in:
@@ -15,7 +15,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
class CreateOnlineStore1 extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const CreateOnlineStore1(this.businessId, {Key key}) : super(key: key);
|
||||
const CreateOnlineStore1(this.businessId, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -24,7 +24,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
|
||||
class DesktopBlog extends StatefulWidget {
|
||||
final int businessId;
|
||||
const DesktopBlog({Key key, this.businessId}) : super(key: key);
|
||||
const DesktopBlog({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
class DesktopBuyService extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
const DesktopBuyService(this.data, {Key key})
|
||||
const DesktopBuyService(this.data, {Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../utils/utils.dart';
|
||||
class DesktopChangeMobileOrEmail extends StatefulWidget {
|
||||
final bool isMobile;
|
||||
|
||||
const DesktopChangeMobileOrEmail(this.isMobile, {Key key}) : super(key: key);
|
||||
const DesktopChangeMobileOrEmail(this.isMobile, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -8,7 +8,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/breadcrumbs.dart';
|
||||
|
||||
class DesktopChangePassword extends StatefulWidget {
|
||||
const DesktopChangePassword({Key key}) : super(key: key);
|
||||
const DesktopChangePassword({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -34,7 +34,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/sliding_up_panel.dart';
|
||||
|
||||
class DesktopCheckout extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
|
||||
const DesktopCheckout(this.businessId, {this.key,}) : super(key: key);
|
||||
|
||||
@@ -19,7 +19,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
class DesktopContactUs extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const DesktopContactUs(this.business, {Key key}) : super(key: key);
|
||||
const DesktopContactUs(this.business, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -17,7 +17,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopCoupons extends StatefulWidget {
|
||||
final int contactId;
|
||||
final Key key;
|
||||
final Key? key;
|
||||
const DesktopCoupons(this.contactId, {this.key});
|
||||
|
||||
@override
|
||||
|
||||
@@ -9,7 +9,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
class DesktopDownloadApps extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
DesktopDownloadApps(this.data, {Key key}) : super(key: key);
|
||||
DesktopDownloadApps(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -20,7 +20,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopEditAddress extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final Address address;
|
||||
final int businessId;
|
||||
const DesktopEditAddress(this.address, {this.key, int businessId}) :
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopForgotPassword extends StatefulWidget {
|
||||
const DesktopForgotPassword({Key key}) : super(key: key);
|
||||
const DesktopForgotPassword({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -8,7 +8,7 @@ import '../../widgets/general/breadcrumbs.dart';
|
||||
|
||||
class DesktopiGoShowLearnMore extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
const DesktopiGoShowLearnMore(this.data, {Key key}) : super(key: key);
|
||||
const DesktopiGoShowLearnMore(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopLogin extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const DesktopLogin({this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ double statusBarHeight;
|
||||
double screenHeight;
|
||||
|
||||
class DesktopMe extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const DesktopMe({this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import '../../widgets/general/breadcrumbs.dart';
|
||||
|
||||
class DesktopMiniPosLearnMore extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
const DesktopMiniPosLearnMore(this.data, {Key key}) : super(key: key);
|
||||
const DesktopMiniPosLearnMore(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -20,7 +20,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopMyAddresses extends StatefulWidget {
|
||||
final int businessId;
|
||||
const DesktopMyAddresses({Key key, this.businessId}) : super(key: key);
|
||||
const DesktopMyAddresses({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -20,7 +20,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopMySupport extends StatefulWidget {
|
||||
final int businessId;
|
||||
const DesktopMySupport({Key key, this.businessId}) : super(key: key);
|
||||
const DesktopMySupport({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopNewAddress extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final LocatedAddress locatedAddress;
|
||||
final int businessId;
|
||||
const DesktopNewAddress({this.key, this.locatedAddress, this.businessId}) : super(key: key);
|
||||
|
||||
@@ -22,7 +22,7 @@ import '../../utils/utils.dart';
|
||||
|
||||
|
||||
class DesktopNewComment extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
const DesktopNewComment(this.orderId, {this.key});
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import '../../widgets/general/breadcrumbs.dart';
|
||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||
|
||||
class DesktopNewTicket extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
|
||||
const DesktopNewTicket({this.key, int businessId}) :
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopNewUser extends StatefulWidget {
|
||||
const DesktopNewUser({Key key}) : super(key: key);
|
||||
const DesktopNewUser({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -26,7 +26,7 @@ import '../../widgets/general/breadcrumbs.dart';
|
||||
import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
class DesktopOrderDetail extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
final bool fromOrders;
|
||||
const DesktopOrderDetail(this.orderId, {this.key, this.fromOrders});
|
||||
|
||||
@@ -22,7 +22,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
|
||||
|
||||
class DesktopOrders extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
const DesktopOrders({this.key});
|
||||
|
||||
@override
|
||||
|
||||
@@ -20,7 +20,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopPayNow extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
const DesktopPayNow(this.orderId, {this.key});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
class DesktopPlainPage extends StatefulWidget {
|
||||
final Blog blog;
|
||||
|
||||
const DesktopPlainPage(this.blog, {Key key}) : super(key: key);
|
||||
const DesktopPlainPage(this.blog, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -30,7 +30,7 @@ class DesktopProductDetailPage extends StatefulWidget {
|
||||
final Product product;
|
||||
|
||||
const DesktopProductDetailPage(
|
||||
{@required this.business, @required this.product, Key key})
|
||||
{@required this.business, @required this.product, Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -17,7 +17,7 @@ class DesktopProductItem extends StatefulWidget {
|
||||
final Business business;
|
||||
final bool horizontal;
|
||||
|
||||
DesktopProductItem({this.product, this.business, Key key, this.horizontal = false})
|
||||
DesktopProductItem({this.product, this.business, Key? key, this.horizontal = false})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
class DesktopRenewLicense extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const DesktopRenewLicense(this.businessId, {Key key}) : super(key: key);
|
||||
const DesktopRenewLicense(this.businessId, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -17,7 +17,7 @@ import '../../widgets/general/navigationbar.dart';
|
||||
class DesktopRenewMiniOffice extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
const DesktopRenewMiniOffice(this.data, {Key key}) : super(key: key);
|
||||
const DesktopRenewMiniOffice(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -12,7 +12,7 @@ class DesktopResetPassword extends StatefulWidget {
|
||||
final String mobile;
|
||||
final String code;
|
||||
|
||||
const DesktopResetPassword(this.mobile, {this.code, Key key}) :
|
||||
const DesktopResetPassword(this.mobile, {this.code, Key? key}) :
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -17,7 +17,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopSearchPlace extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
const DesktopSearchPlace(this.businessId, {this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class DesktopSetPassword extends StatefulWidget {
|
||||
final String mobile;
|
||||
final String code;
|
||||
|
||||
const DesktopSetPassword(this.mobile, {this.code, Key key}) :
|
||||
const DesktopSetPassword(this.mobile, {this.code, Key? key}) :
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -19,7 +19,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/add_remove_button.dart';
|
||||
|
||||
class DesktopStoreProductSearch extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final Business business;
|
||||
|
||||
const DesktopStoreProductSearch(this.business, {this.key});
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class DesktopUserProfile extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const DesktopUserProfile({this.key})
|
||||
: super(key: key);
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../widgets/general/breadcrumbs.dart';
|
||||
import '../../utils/util_io.dart' if (dart.library.html) '../../utils/util_web.dart';
|
||||
|
||||
class DesktopViewBlog extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int bid;
|
||||
|
||||
const DesktopViewBlog(this.bid, {this.key}) : super(key: key);
|
||||
|
||||
@@ -19,7 +19,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/text_link.dart';
|
||||
|
||||
class DesktopViewTicket extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int ticketId;
|
||||
|
||||
const DesktopViewTicket(this.ticketId, {this.key}) : super(key: key);
|
||||
|
||||
@@ -17,7 +17,7 @@ class ProductItem extends StatefulWidget {
|
||||
final Product product;
|
||||
final bool horizontal;
|
||||
|
||||
const ProductItem(this.product, this.business, {Key key, this.horizontal = false}) : super(key: key);
|
||||
const ProductItem(this.product, this.business, {Key? key, this.horizontal = false}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ProductItemState();
|
||||
|
||||
@@ -20,7 +20,7 @@ import 'product_item.dart';
|
||||
class ProductSearch extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const ProductSearch(this.business, {Key key}) : super(key: key);
|
||||
const ProductSearch(this.business, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ProductSearchState();
|
||||
|
||||
@@ -24,7 +24,7 @@ import 'shopping_cart_widget.dart';
|
||||
class Shop extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const Shop({Key key, this.businessId}): super(key: key);
|
||||
const Shop({Key? key, this.businessId}): super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ShopState();
|
||||
|
||||
@@ -7,7 +7,7 @@ import '../../models/business.dart';
|
||||
class ShopBulletin extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const ShopBulletin(this.business, {Key key}): super(key: key);
|
||||
const ShopBulletin(this.business, {Key? key}): super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ShopBulletinState();
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../widgets/desktop/product_item.dart';
|
||||
class ShopProducts extends StatefulWidget {
|
||||
final dynamic data;
|
||||
|
||||
const ShopProducts(this.data, {Key key}): super(key: key);
|
||||
const ShopProducts(this.data, {Key? key}): super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ShopProductsState();
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../../utils/util_io.dart' if (dart.library.html) '../../utils/util_web.d
|
||||
class ShopPromote extends StatefulWidget {
|
||||
final dynamic data;
|
||||
|
||||
const ShopPromote(this.data, {Key key}): super(key: key);
|
||||
const ShopPromote(this.data, {Key? key}): super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ShopPromoteState();
|
||||
|
||||
@@ -102,7 +102,7 @@ class CarouselState extends State<Carousel> {
|
||||
}
|
||||
|
||||
class Indicator extends StatefulWidget {
|
||||
Indicator({Key key, int count})
|
||||
Indicator({Key? key, int count})
|
||||
: count = count,
|
||||
super(key: key);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../../utils/utils.dart';
|
||||
class DownloadItem extends StatefulWidget {
|
||||
final dynamic desc;
|
||||
final double width;
|
||||
const DownloadItem(this.desc, {Key key, this.width}) : super(key: key);
|
||||
const DownloadItem(this.desc, {Key? key, this.width}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// 自定义实现,替代已停维的 `hovering` 包的 [HoverWidget]。
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class IndexCarousel extends StatelessWidget {
|
||||
final List<Gallery> galleries;
|
||||
const IndexCarousel(this.galleries, {Key key}) : super(key: key);
|
||||
const IndexCarousel(this.galleries, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class IndexMainContent1 extends StatelessWidget {
|
||||
final String message;
|
||||
const IndexMainContent1(this.message, {Key key}) : super(key: key);
|
||||
const IndexMainContent1(this.message, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class IndexMainContent2 extends StatelessWidget {
|
||||
final Map<String, dynamic> content;
|
||||
const IndexMainContent2(this.content, {Key key}) : super(key: key);
|
||||
const IndexMainContent2(this.content, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class IndexMainContent3 extends StatelessWidget {
|
||||
final Map<String, dynamic> content;
|
||||
const IndexMainContent3(this.content, {Key key}) : super(key: key);
|
||||
const IndexMainContent3(this.content, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||
import '../../constants.dart';
|
||||
|
||||
class NavigationBarLogo extends StatelessWidget {
|
||||
const NavigationBarLogo({Key key}) : super(key: key);
|
||||
const NavigationBarLogo({Key? key}) : super(key: key);
|
||||
|
||||
static const IconData logoData = IconData(
|
||||
Constants.FONT_WISETRONIC,
|
||||
|
||||
@@ -12,7 +12,7 @@ typedef OnCodeVerified();
|
||||
typedef OnCancel();
|
||||
|
||||
class PaymentVerificationCodeDialog extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final User user;
|
||||
final OnCodeVerified onCodeVerified;
|
||||
final OnCancel onCancel;
|
||||
|
||||
@@ -9,7 +9,7 @@ enum TrimMode {
|
||||
class ReadMoreText extends StatefulWidget {
|
||||
const ReadMoreText(
|
||||
this.data, {
|
||||
Key key,
|
||||
Key? key,
|
||||
this.trimExpandedText = ' read less',
|
||||
this.trimCollapsedText = ' ...read more',
|
||||
this.colorClickableText,
|
||||
|
||||
@@ -164,7 +164,7 @@ class SlidingUpPanel extends StatefulWidget {
|
||||
final PanelState defaultPanelState;
|
||||
|
||||
SlidingUpPanel({
|
||||
Key key,
|
||||
Key? key,
|
||||
this.panel,
|
||||
this.panelBuilder,
|
||||
this.body,
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../../utils/utils.dart';
|
||||
class CreateOnlineStore1 extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const CreateOnlineStore1(this.businessId, {Key key}) : super(key: key);
|
||||
const CreateOnlineStore1(this.businessId, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -19,7 +19,7 @@ import '../../widgets/general/attribute/radio_options.dart';
|
||||
class MobileAttributeSelection extends StatefulWidget {
|
||||
final Product product;
|
||||
final Business business;
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final GlobalKey startKey;
|
||||
|
||||
const MobileAttributeSelection({@required this.product, @required this.business, this.key, this.startKey})
|
||||
|
||||
@@ -18,7 +18,7 @@ import '../../widgets/mobile/MobileBottomNav.dart';
|
||||
|
||||
class MobileBlog extends StatefulWidget {
|
||||
final int businessId;
|
||||
const MobileBlog({Key key, this.businessId}) : super(key: key);
|
||||
const MobileBlog({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../utils/utils.dart';
|
||||
class MobileBuyService extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
const MobileBuyService(this.data, {Key key})
|
||||
const MobileBuyService(this.data, {Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../utils/utils.dart';
|
||||
class MobileChangeMobileOrEmail extends StatefulWidget {
|
||||
final bool isMobile;
|
||||
|
||||
const MobileChangeMobileOrEmail(this.isMobile, {Key key}) : super(key: key);
|
||||
const MobileChangeMobileOrEmail(this.isMobile, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import '../../utils/utils.dart';
|
||||
import '../../generated/l10n.dart';
|
||||
|
||||
class MobileChangePassword extends StatefulWidget {
|
||||
const MobileChangePassword({Key key}) : super(key: key);
|
||||
const MobileChangePassword({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -32,7 +32,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/general/sliding_up_panel.dart';
|
||||
|
||||
class MobileCheckout extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
|
||||
const MobileCheckout(this.businessId, {this.key,}) : super(key: key);
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../widgets/general/text_link.dart';
|
||||
class MobileContactUs extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const MobileContactUs(this.business, {Key key}) : super(key: key);
|
||||
const MobileContactUs(this.business, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import '../../utils/utils.dart';
|
||||
|
||||
class MobileCoupons extends StatefulWidget {
|
||||
final int contactId;
|
||||
final Key key;
|
||||
final Key? key;
|
||||
const MobileCoupons(this.contactId, {this.key});
|
||||
|
||||
@override
|
||||
|
||||
@@ -7,7 +7,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
class MobileDownloadApps extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
MobileDownloadApps(this.data, {Key key}) : super(key: key);
|
||||
MobileDownloadApps(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -18,7 +18,7 @@ import '../general/gender_selection.dart';
|
||||
import '../../routes.dart';
|
||||
|
||||
class MobileEditAddress extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final Address address;
|
||||
final int businessId;
|
||||
const MobileEditAddress(this.address, {this.key, int businessId}) :
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class MobileForgotPassword extends StatefulWidget {
|
||||
const MobileForgotPassword({Key key}) : super(key: key);
|
||||
const MobileForgotPassword({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
|
||||
class MobileiGoShowLearnMore extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
const MobileiGoShowLearnMore(this.data, {Key key}) : super(key: key);
|
||||
const MobileiGoShowLearnMore(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../store/actions.dart';
|
||||
import '../../store/store.dart';
|
||||
|
||||
class MobileLogin extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const MobileLogin({this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ double statusBarHeight;
|
||||
double screenHeight;
|
||||
|
||||
class MobileMe extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const MobileMe({this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
|
||||
class MobileMiniPosLearnMore extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
const MobileMiniPosLearnMore(this.data, {Key key}) : super(key: key);
|
||||
const MobileMiniPosLearnMore(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -17,7 +17,7 @@ import '../../routes.dart';
|
||||
|
||||
class MobileMyAddresses extends StatefulWidget {
|
||||
final int businessId;
|
||||
const MobileMyAddresses({Key key, this.businessId}) : super(key: key);
|
||||
const MobileMyAddresses({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -18,7 +18,7 @@ import '../../widgets/mobile/MobileBottomNav.dart';
|
||||
|
||||
class MobileMySupport extends StatefulWidget {
|
||||
final int businessId;
|
||||
const MobileMySupport({Key key, this.businessId}) : super(key: key);
|
||||
const MobileMySupport({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../store/store.dart';
|
||||
import '../../utils/http_util.dart';
|
||||
|
||||
class MobileNewAddress extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final LocatedAddress locatedAddress;
|
||||
final int businessId;
|
||||
const MobileNewAddress({this.key, this.locatedAddress, this.businessId}) : super(key: key);
|
||||
|
||||
@@ -19,7 +19,7 @@ import '../../utils/utils.dart';
|
||||
|
||||
|
||||
class MobileNewComment extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
const MobileNewComment(this.orderId, {this.key});
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import '../../store/store.dart';
|
||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||
|
||||
class MobileNewTicket extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
|
||||
const MobileNewTicket({this.key, int businessId}) :
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class MobileNewUser extends StatefulWidget {
|
||||
const MobileNewUser({Key key}) : super(key: key);
|
||||
const MobileNewUser({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -24,7 +24,7 @@ import '../../routes.dart';
|
||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||
|
||||
class MobileOrderDetail extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
final bool fromOrders;
|
||||
const MobileOrderDetail(this.orderId, {this.key, this.fromOrders});
|
||||
|
||||
@@ -18,7 +18,7 @@ import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
import 'MobileBottomNav.dart';
|
||||
|
||||
class MobileOrders extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
const MobileOrders({this.key});
|
||||
|
||||
@override
|
||||
|
||||
@@ -18,7 +18,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class MobilePayNow extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int orderId;
|
||||
const MobilePayNow(this.orderId, {this.key});
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import '../../models/blog.dart';
|
||||
class MobilePlainPage extends StatefulWidget {
|
||||
final Blog blog;
|
||||
|
||||
const MobilePlainPage(this.blog, {Key key}) : super(key: key);
|
||||
const MobilePlainPage(this.blog, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -33,7 +33,7 @@ class MobileProductDetailPage extends StatefulWidget {
|
||||
final Product product;
|
||||
|
||||
const MobileProductDetailPage(
|
||||
{@required this.business, @required this.product, Key key})
|
||||
{@required this.business, @required this.product, Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -15,7 +15,7 @@ class MobileProductItem extends StatefulWidget {
|
||||
final Product product;
|
||||
final Business business;
|
||||
|
||||
MobileProductItem({this.product, this.business, Key key})
|
||||
MobileProductItem({this.product, this.business, Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../../utils/utils.dart';
|
||||
class MobileRenewLicense extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const MobileRenewLicense(this.businessId, {Key key}) : super(key: key);
|
||||
const MobileRenewLicense(this.businessId, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import '../../utils/utils.dart';
|
||||
class MobileRenewMiniOffice extends StatefulWidget {
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
const MobileRenewMiniOffice(this.data, {Key key}) : super(key: key);
|
||||
const MobileRenewMiniOffice(this.data, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -12,7 +12,7 @@ class MobileResetPassword extends StatefulWidget {
|
||||
final String mobile;
|
||||
final String code;
|
||||
|
||||
const MobileResetPassword(this.mobile, {this.code, Key key})
|
||||
const MobileResetPassword(this.mobile, {this.code, Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
|
||||
@@ -14,7 +14,7 @@ import '../../utils/http_util.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class MobileSearchPlace extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int businessId;
|
||||
const MobileSearchPlace(this.businessId, {this.key}) : super(key: key);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class MobileSetPassword extends StatefulWidget {
|
||||
final String mobile;
|
||||
final String code;
|
||||
|
||||
const MobileSetPassword(this.mobile, {Key key, this.code}) : super(key: key);
|
||||
const MobileSetPassword(this.mobile, {Key? key, this.code}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../utils/utils.dart';
|
||||
import '../../widgets/mobile/mobile_product_item.dart';
|
||||
|
||||
class MobileStoreProductSearch extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final Business business;
|
||||
|
||||
const MobileStoreProductSearch(this.business, {this.key});
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dar
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
class MobileUserProfile extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
|
||||
const MobileUserProfile({this.key})
|
||||
: super(key: key);
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../../utils/utils.dart';
|
||||
import '../../utils/util_io.dart' if (dart.library.html) '../../utils/util_web.dart';
|
||||
|
||||
class MobileViewBlog extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int bid;
|
||||
|
||||
const MobileViewBlog(this.bid, {this.key}) : super(key: key);
|
||||
|
||||
@@ -20,7 +20,7 @@ import '../../utils/utils.dart';
|
||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||
|
||||
class MobileViewTicket extends StatefulWidget {
|
||||
final Key key;
|
||||
final Key? key;
|
||||
final int ticketId;
|
||||
|
||||
const MobileViewTicket(this.ticketId, {this.key}) : super(key: key);
|
||||
|
||||
@@ -19,7 +19,7 @@ class ProductItem extends StatefulWidget {
|
||||
final double imageWidth;
|
||||
|
||||
const ProductItem(this.product, this.business, {
|
||||
Key key,
|
||||
Key? key,
|
||||
this.horizontal = false,
|
||||
this.imageWidth = 110,
|
||||
}) : super(key: key);
|
||||
|
||||
@@ -18,7 +18,7 @@ import 'product_item.dart';
|
||||
class ProductSearch extends StatefulWidget {
|
||||
final Business business;
|
||||
|
||||
const ProductSearch(this.business, {Key key}) : super(key: key);
|
||||
const ProductSearch(this.business, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ProductSearchState();
|
||||
|
||||
@@ -45,7 +45,7 @@ double screenHeight;
|
||||
class Shop extends StatefulWidget {
|
||||
final int businessId;
|
||||
|
||||
const Shop({Key key, this.businessId}) : super(key: key);
|
||||
const Shop({Key? key, this.businessId}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => ShopState();
|
||||
|
||||
Reference in New Issue
Block a user