backup. before shop update
This commit is contained in:
34
lib/pages/product_detail_page.dart
Normal file
34
lib/pages/product_detail_page.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
import '../models/business.dart';
|
||||
import '../models/product.dart';
|
||||
import '../store/actions.dart';
|
||||
import '../store/store.dart';
|
||||
import '../widgets/desktop/desktop_product_detail_page.dart';
|
||||
import '../widgets/mobile/mobile_product_detail_page.dart';
|
||||
|
||||
class ProductDetailPage extends StatelessWidget {
|
||||
final Business business;
|
||||
final Product product;
|
||||
|
||||
const ProductDetailPage({this.business, this.product, Key key}) :
|
||||
super(key: key);
|
||||
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
store.dispatch(UpdateContext(context));
|
||||
|
||||
return ResponsiveBuilder(
|
||||
builder: (context, sizingInformation) =>
|
||||
ScreenTypeLayout(
|
||||
mobile: MobileProductDetailPage(business: business, product: product,),
|
||||
tablet: DesktopProductDetailPage(business: business, product: product,),
|
||||
desktop: DesktopProductDetailPage(business: business, product: product,),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user