@@ -5,9 +5,12 @@ import 'package:smooth_app/generic_lib/widgets/smooth_back_button.dart';
55import 'package:smooth_app/generic_lib/widgets/smooth_card.dart' ;
66import 'package:smooth_app/helpers/launch_url_helper.dart' ;
77import 'package:smooth_app/l10n/app_localizations.dart' ;
8+ import 'package:smooth_app/pages/prices/get_prices_model.dart' ;
89import 'package:smooth_app/pages/prices/infinite_scroll_list.dart' ;
910import 'package:smooth_app/pages/prices/infinite_scroll_manager.dart' ;
11+ import 'package:smooth_app/pages/prices/price_meta_product.dart' ;
1012import 'package:smooth_app/pages/prices/price_product_widget.dart' ;
13+ import 'package:smooth_app/pages/prices/prices_page.dart' ;
1114import 'package:smooth_app/query/product_query.dart' ;
1215import 'package:smooth_app/widgets/smooth_app_bar.dart' ;
1316import 'package:smooth_app/widgets/smooth_scaffold.dart' ;
@@ -94,6 +97,20 @@ class _InfiniteScrollProductManager
9497 required BuildContext context,
9598 required PriceProduct item,
9699 }) {
97- return SmoothCard (child: PriceProductWidget (item));
100+ return SmoothCard (
101+ child: InkWell (
102+ onTap: () async => Navigator .of (context).push <void >(
103+ MaterialPageRoute <void >(
104+ builder: (BuildContext context) => PricesPage (
105+ GetPricesModel .product (
106+ product: PriceMetaProduct .priceProduct (item),
107+ context: context,
108+ ),
109+ ),
110+ ),
111+ ),
112+ child: PriceProductWidget (item),
113+ ),
114+ );
98115 }
99116}
0 commit comments