From bae2dfcd099fc0e7103fbb08ce791853e2076962 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 16 May 2022 10:17:28 +0700 Subject: [PATCH] add navigator to shop now button --- lib/components/bannerimage.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/bannerimage.dart b/lib/components/bannerimage.dart index d2511e3..46b8401 100644 --- a/lib/components/bannerimage.dart +++ b/lib/components/bannerimage.dart @@ -46,7 +46,9 @@ class Bannerimage extends StatelessWidget { height: 8.0, ), ElevatedButton( - onPressed: () {}, + onPressed: () { + Navigator.pushReplacementNamed(context, '/products'); + }, style: ElevatedButton.styleFrom( primary: Colors.red, textStyle: const TextStyle(