Skip to content

Commit

Permalink
lib: product: show a message when the Buy button is pressed
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Dubey <[email protected]>
  • Loading branch information
Ayushd70 committed Jul 6, 2021
1 parent 5bc675e commit 98f3b3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/screen/product.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ class _ProductState extends State<Product> {
child: Center(
child: InkWell(
onTap: () {
print('Buy Now');
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text("Buying not supported yet"),
),
);
},
child: Text(
'Buy Now',
Expand Down

0 comments on commit 98f3b3e

Please sign in to comment.