diff --git a/lib/components/bannerimage.dart b/lib/components/bannerimage.dart index 80ff44c..b82ce7e 100644 --- a/lib/components/bannerimage.dart +++ b/lib/components/bannerimage.dart @@ -27,7 +27,7 @@ class Bannerimage extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( - 'SPRING / SUMMER COLLECTION 2022', + 'FALL 2023 SALE!', style: TextStyle( color: Colors.black, fontSize: 10.5, @@ -37,7 +37,7 @@ class Bannerimage extends StatelessWidget { height: 8.0, ), const Text( - 'Get up to 30% off \nNow Arrivals', + 'Get up to 30% off \nNew Collections', style: TextStyle( color: Colors.black, fontSize: 20.0, @@ -48,7 +48,7 @@ class Bannerimage extends StatelessWidget { ), ElevatedButton( onPressed: () { - Navigator.pushReplacementNamed(context, '/products'); + Navigator.pushReplacementNamed(context, '/discounts'); }, style: ElevatedButton.styleFrom( backgroundColor: Colors.red, diff --git a/lib/components/menu.dart b/lib/components/menu.dart index cfb1b3d..8f57ea2 100644 --- a/lib/components/menu.dart +++ b/lib/components/menu.dart @@ -62,7 +62,7 @@ class _MenuState extends State { var oldSelectedIndex = _selectedIndex; _selectedIndex = index; if (index == 0) { - html.window.history.pushState(null, '', '/#/discount'); + html.window.history.pushState(null, '', '/#/discounts'); _selectedWidget = const Discounts(); } else if (index == 1) { html.window.history.pushState(null, '', '/#/products'); diff --git a/lib/main.dart b/lib/main.dart index cd20c82..89af5cb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -62,7 +62,7 @@ class _NekoyaState extends State { '/products': (context) => const Menu( initialScreen: 1, ), - '/discount': (context) => const Menu( + '/discounts': (context) => const Menu( initialScreen: 0, ), '/cart': (context) => const Menu(