final
This commit is contained in:
@@ -13,7 +13,7 @@ class ProductDetailPage extends StatelessWidget {
|
||||
final Business business;
|
||||
final Product product;
|
||||
|
||||
const ProductDetailPage({this.business, this.product, Key key}) :
|
||||
const ProductDetailPage({required this.business, required this.product, Key? key}) :
|
||||
super(key: key);
|
||||
|
||||
|
||||
@@ -23,10 +23,10 @@ class ProductDetailPage extends StatelessWidget {
|
||||
|
||||
return ResponsiveBuilder(
|
||||
builder: (context, sizingInformation) =>
|
||||
ScreenTypeLayout(
|
||||
mobile: MobileProductDetailPage(business: business, product: product,),
|
||||
tablet: DesktopProductDetailPage(business: business, product: product,),
|
||||
desktop: DesktopProductDetailPage(business: business, product: product,),
|
||||
ScreenTypeLayout.builder(
|
||||
mobile: (context) => MobileProductDetailPage(business: business, product: product,),
|
||||
tablet: (context) => DesktopProductDetailPage(business: business, product: product,),
|
||||
desktop: (context) => DesktopProductDetailPage(business: business, product: product,),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user