Update banner

This commit is contained in:
Moe Poi ~ 2023-11-10 21:32:01 +07:00
parent 835bf87bae
commit 46e050675f
3 changed files with 5 additions and 5 deletions

View file

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

View file

@ -62,7 +62,7 @@ class _MenuState extends State<Menu> {
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');

View file

@ -62,7 +62,7 @@ class _NekoyaState extends State<Nekoya> {
'/products': (context) => const Menu(
initialScreen: 1,
),
'/discount': (context) => const Menu(
'/discounts': (context) => const Menu(
initialScreen: 0,
),
'/cart': (context) => const Menu(