Change loading placeholder

This commit is contained in:
Moe Poi ~ 2023-11-13 12:23:40 +07:00
parent 31b1e5765a
commit 52aa043fdb
5 changed files with 15 additions and 15 deletions

View file

@ -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));
}
}

View file

@ -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: () {},

View file

@ -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: () {},
),

View file

@ -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: () {},
),

View file

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