Update banner
This commit is contained in:
parent
835bf87bae
commit
46e050675f
3 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ class Bannerimage extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'SPRING / SUMMER COLLECTION 2022',
|
'FALL 2023 SALE!',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 10.5,
|
fontSize: 10.5,
|
||||||
|
@ -37,7 +37,7 @@ class Bannerimage extends StatelessWidget {
|
||||||
height: 8.0,
|
height: 8.0,
|
||||||
),
|
),
|
||||||
const Text(
|
const Text(
|
||||||
'Get up to 30% off \nNow Arrivals',
|
'Get up to 30% off \nNew Collections',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 20.0,
|
fontSize: 20.0,
|
||||||
|
@ -48,7 +48,7 @@ class Bannerimage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushReplacementNamed(context, '/products');
|
Navigator.pushReplacementNamed(context, '/discounts');
|
||||||
},
|
},
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: Colors.red,
|
backgroundColor: Colors.red,
|
||||||
|
|
|
@ -62,7 +62,7 @@ class _MenuState extends State<Menu> {
|
||||||
var oldSelectedIndex = _selectedIndex;
|
var oldSelectedIndex = _selectedIndex;
|
||||||
_selectedIndex = index;
|
_selectedIndex = index;
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
html.window.history.pushState(null, '', '/#/discount');
|
html.window.history.pushState(null, '', '/#/discounts');
|
||||||
_selectedWidget = const Discounts();
|
_selectedWidget = const Discounts();
|
||||||
} else if (index == 1) {
|
} else if (index == 1) {
|
||||||
html.window.history.pushState(null, '', '/#/products');
|
html.window.history.pushState(null, '', '/#/products');
|
||||||
|
|
|
@ -62,7 +62,7 @@ class _NekoyaState extends State<Nekoya> {
|
||||||
'/products': (context) => const Menu(
|
'/products': (context) => const Menu(
|
||||||
initialScreen: 1,
|
initialScreen: 1,
|
||||||
),
|
),
|
||||||
'/discount': (context) => const Menu(
|
'/discounts': (context) => const Menu(
|
||||||
initialScreen: 0,
|
initialScreen: 0,
|
||||||
),
|
),
|
||||||
'/cart': (context) => const Menu(
|
'/cart': (context) => const Menu(
|
||||||
|
|
Loading…
Reference in a new issue