diff --git a/packages/smooth_app/lib/cards/product_cards/product_title_card.dart b/packages/smooth_app/lib/cards/product_cards/product_title_card.dart index bfea86eb24f..72c1b9a85d1 100644 --- a/packages/smooth_app/lib/cards/product_cards/product_title_card.dart +++ b/packages/smooth_app/lib/cards/product_cards/product_title_card.dart @@ -5,7 +5,6 @@ import 'package:provider/provider.dart'; import 'package:smooth_app/generic_lib/design_constants.dart'; import 'package:smooth_app/helpers/extension_on_text_helper.dart'; import 'package:smooth_app/helpers/product_cards_helper.dart'; -import 'package:smooth_app/pages/product/add_basic_details_page.dart'; class ProductTitleCard extends StatelessWidget { const ProductTitleCard( @@ -28,50 +27,35 @@ class ProductTitleCard extends StatelessWidget { value: product, child: Align( alignment: AlignmentDirectional.topStart, - child: InkWell( - onTap: _hasProductName - ? () async { - await Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => - AddBasicDetailsPage(product), - ), - ); - } - : null, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - child: _ProductTitleCardName( - selectable: isSelectable, - ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: _ProductTitleCardName( + selectable: isSelectable, ), - Expanded( - child: _ProductTitleCardTrailing( - removable: isRemovable, - selectable: isSelectable, - onRemove: onRemove, - ), - ) - ], - ), - _ProductTitleCardBrand( - removable: isRemovable, - selectable: isSelectable, - ), - ], - ), + ), + Expanded( + child: _ProductTitleCardTrailing( + removable: isRemovable, + selectable: isSelectable, + onRemove: onRemove, + ), + ) + ], + ), + _ProductTitleCardBrand( + removable: isRemovable, + selectable: isSelectable, + ), + ], ), ), ); } - - bool get _hasProductName => product.productName != null; } class _ProductTitleCardName extends StatelessWidget {