add navigator to shop now button

This commit is contained in:
Moe Poi ~ 2022-05-16 10:17:28 +07:00
parent a2166bcba8
commit bae2dfcd09

View file

@ -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(