From 52aa043fdba9b57779da3a42d40d0425d97319e0 Mon Sep 17 00:00:00 2001 From: Moe Poi ~ Date: Mon, 13 Nov 2023 12:23:40 +0700 Subject: [PATCH] Change loading placeholder --- lib/components/carousel.dart | 22 +++++++++++----------- lib/components/checkout_items.dart | 2 +- lib/components/new_arrival_products.dart | 2 +- lib/components/popular_products.dart | 2 +- lib/components/transaction_box.dart | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/components/carousel.dart b/lib/components/carousel.dart index 8402e49..54c62ed 100644 --- a/lib/components/carousel.dart +++ b/lib/components/carousel.dart @@ -31,7 +31,9 @@ class _CarouselState extends State { 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'), @@ -73,15 +75,13 @@ class _CarouselState extends State { @override Widget build(BuildContext context) { return CarouselSlider( - items: imageSliders, - carouselController: _controller, - options: CarouselOptions( - aspectRatio: 2.0, - enlargeCenterPage: true, - enableInfiniteScroll: false, - initialPage: 2, - autoPlay: true - ) - ); + items: imageSliders, + carouselController: _controller, + options: CarouselOptions( + aspectRatio: 2.0, + enlargeCenterPage: true, + enableInfiniteScroll: false, + initialPage: 2, + autoPlay: true)); } } diff --git a/lib/components/checkout_items.dart b/lib/components/checkout_items.dart index c412def..a06d972 100644 --- a/lib/components/checkout_items.dart +++ b/lib/components/checkout_items.dart @@ -81,7 +81,7 @@ class _CheckoutItemsState extends State { 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: () {}, diff --git a/lib/components/new_arrival_products.dart b/lib/components/new_arrival_products.dart index 8db26b4..d6b65ba 100644 --- a/lib/components/new_arrival_products.dart +++ b/lib/components/new_arrival_products.dart @@ -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: () {}, ), diff --git a/lib/components/popular_products.dart b/lib/components/popular_products.dart index 77fcf0d..b4e9157 100644 --- a/lib/components/popular_products.dart +++ b/lib/components/popular_products.dart @@ -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: () {}, ), diff --git a/lib/components/transaction_box.dart b/lib/components/transaction_box.dart index 579ca40..822dfc3 100644 --- a/lib/components/transaction_box.dart +++ b/lib/components/transaction_box.dart @@ -169,7 +169,7 @@ class _TransactionBoxState extends State { return const TransactionProductBox( imageUrl: - 'https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp', + 'https://telegra.ph/file/75f075e858198e4e7898a.png', title: 'Loading...', quantity: 0, );