final
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user