This commit is contained in:
2026-07-12 04:33:48 +08:00
parent f8a90ad305
commit e7ce0f7bae
151 changed files with 2765 additions and 2947 deletions

View File

@@ -8,9 +8,9 @@ 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);
const Shop({this.businessId, Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() => ShopState();
@@ -20,17 +20,17 @@ class ShopState extends State<Shop> {
@override
Widget build(BuildContext context) {
int _businessId =
widget.businessId == null ? Utils.getBusinessId() : widget.businessId;
widget.businessId == null ? Utils.getBusinessId() : widget.businessId!;
return ResponsiveBuilder(
builder: (context, sizingInformation) => ScreenTypeLayout(
mobile: mobile.Shop(
builder: (context, sizingInformation) => ScreenTypeLayout.builder(
mobile: (context) => mobile.Shop(
businessId: _businessId,
),
tablet: desktop.Shop(
tablet: (context) => desktop.Shop(
businessId: _businessId,
),
desktop: desktop.Shop(
desktop: (context) => desktop.Shop(
businessId: _businessId,
),
),