Change loading placeholder
This commit is contained in:
parent
31b1e5765a
commit
52aa043fdb
5 changed files with 15 additions and 15 deletions
|
@ -31,7 +31,9 @@ class _CarouselState extends State<Carousel> {
|
|||
width: 1000,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/images/image_empty.webp'), fit: BoxFit.cover)),
|
||||
image: AssetImage(
|
||||
'assets/images/logo_transparent.webp'),
|
||||
fit: BoxFit.contain)),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/images/image_error.webp'),
|
||||
|
@ -80,8 +82,6 @@ class _CarouselState extends State<Carousel> {
|
|||
enlargeCenterPage: true,
|
||||
enableInfiniteScroll: false,
|
||||
initialPage: 2,
|
||||
autoPlay: true
|
||||
)
|
||||
);
|
||||
autoPlay: true));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ class _CheckoutItemsState extends State<CheckoutItems> {
|
|||
return CartBox(
|
||||
controller: false,
|
||||
imageUrl:
|
||||
'https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp',
|
||||
'https://telegra.ph/file/75f075e858198e4e7898a.png',
|
||||
title: 'Loading...',
|
||||
quantity: 0,
|
||||
plus: () {},
|
||||
|
|
|
@ -70,7 +70,7 @@ class NewArrivalProducts extends StatelessWidget {
|
|||
child: ProductCard(
|
||||
title: 'Loading...',
|
||||
imageUrl:
|
||||
"https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp",
|
||||
"https://telegra.ph/file/75f075e858198e4e7898a.png",
|
||||
bgColor: const Color(0xFFFEFBF9),
|
||||
press: () {},
|
||||
),
|
||||
|
|
|
@ -70,7 +70,7 @@ class PopularProducts extends StatelessWidget {
|
|||
child: ProductCard(
|
||||
title: 'Loading...',
|
||||
imageUrl:
|
||||
"https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp",
|
||||
"https://telegra.ph/file/75f075e858198e4e7898a.png",
|
||||
bgColor: const Color(0xFFFEFBF9),
|
||||
press: () {},
|
||||
),
|
||||
|
|
|
@ -169,7 +169,7 @@ class _TransactionBoxState extends State<TransactionBox> {
|
|||
|
||||
return const TransactionProductBox(
|
||||
imageUrl:
|
||||
'https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp',
|
||||
'https://telegra.ph/file/75f075e858198e4e7898a.png',
|
||||
title: 'Loading...',
|
||||
quantity: 0,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue