Add image assets to images folders
Before ![]() (image error) Size: 471 KiB After ![]() (image error) Size: 471 KiB ![]() ![]() |
Before ![]() (image error) Size: 2.4 MiB After ![]() (image error) Size: 2.4 MiB ![]() ![]() |
Before ![]() (image error) Size: 721 KiB After ![]() (image error) Size: 721 KiB ![]() ![]() |
Before ![]() (image error) Size: 49 KiB After ![]() (image error) Size: 49 KiB ![]() ![]() |
Before ![]() (image error) Size: 12 KiB After ![]() (image error) Size: 12 KiB ![]() ![]() |
Before ![]() (image error) Size: 18 KiB After ![]() (image error) Size: 18 KiB ![]() ![]() |
Before ![]() (image error) Size: 68 KiB After ![]() (image error) Size: 68 KiB ![]() ![]() |
Before ![]() (image error) Size: 30 KiB After ![]() (image error) Size: 30 KiB ![]() ![]() |
Before ![]() (image error) Size: 6.7 KiB After ![]() (image error) Size: 6.7 KiB ![]() ![]() |
Before ![]() (image error) Size: 6.4 KiB After ![]() (image error) Size: 6.4 KiB ![]() ![]() |
Before ![]() (image error) Size: 54 KiB After ![]() (image error) Size: 54 KiB ![]() ![]() |
|
@ -14,7 +14,7 @@ class Bannerimage extends StatelessWidget {
|
|||
Container(
|
||||
padding: const EdgeInsets.all(0.0),
|
||||
child: Image.asset(
|
||||
'assets/slider_1.webp',
|
||||
'assets/images/slider_1.webp',
|
||||
width: 600.0,
|
||||
height: 180.0,
|
||||
fit: BoxFit.fill,
|
||||
|
|
|
@ -9,9 +9,9 @@ class Carousel extends StatefulWidget {
|
|||
}
|
||||
|
||||
final List<String> imgList = [
|
||||
'assets/Carousel_1.webp',
|
||||
'assets/Carousel_2.webp',
|
||||
'assets/Carousel_3.webp'
|
||||
'assets/images/Carousel_1.webp',
|
||||
'assets/images/Carousel_2.webp',
|
||||
'assets/images/Carousel_3.webp'
|
||||
];
|
||||
|
||||
class _CarouselState extends State<Carousel> {
|
||||
|
|
|
@ -48,7 +48,7 @@ class _CartBoxState extends State<CartBox> {
|
|||
color: Color(0xff8B0000),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/image-error.webp'),
|
||||
Image.asset('assets/images/image-error.webp'),
|
||||
fadeOutDuration: const Duration(milliseconds: 5),
|
||||
imageBuilder: (context, imageProvider) => Container(
|
||||
width: 300,
|
||||
|
|
|
@ -40,17 +40,17 @@ class _PaymentBodyState extends State<PaymentBody> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Image.asset(
|
||||
'assets/bca.webp',
|
||||
'assets/images/bca.webp',
|
||||
cacheHeight: 40,
|
||||
cacheWidth: 100,
|
||||
),
|
||||
Image.asset(
|
||||
'assets/bni.webp',
|
||||
'assets/images/bni.webp',
|
||||
cacheHeight: 40,
|
||||
cacheWidth: 100,
|
||||
),
|
||||
Image.asset(
|
||||
'assets/bri.webp',
|
||||
'assets/images/bri.webp',
|
||||
cacheHeight: 40,
|
||||
cacheWidth: 100,
|
||||
),
|
||||
|
|
|
@ -39,7 +39,7 @@ class _ProductBoxState extends State<ProductBox> {
|
|||
color: Color(0xff8B0000),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/image-error.webp'),
|
||||
Image.asset('assets/images/image-error.webp'),
|
||||
fadeOutDuration: const Duration(milliseconds: 5),
|
||||
imageBuilder: (context, imageProvider) => Container(
|
||||
width: 300,
|
||||
|
|
|
@ -50,7 +50,7 @@ class ProductCard extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/image-error.webp'),
|
||||
Image.asset('assets/images/image-error.webp'),
|
||||
fadeOutDuration: const Duration(milliseconds: 5),
|
||||
imageBuilder: (context, imageProvider) => Container(
|
||||
height: 132,
|
||||
|
|
|
@ -58,7 +58,7 @@ Widget productDetail(context, id) {
|
|||
color: Color(0xff8B0000),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/image-error.webp'),
|
||||
Image.asset('assets/images/image-error.webp'),
|
||||
fadeOutDuration: const Duration(milliseconds: 5),
|
||||
imageBuilder: (context, imageProvider) =>
|
||||
Container(
|
||||
|
|
|
@ -26,7 +26,7 @@ class _TransactionProductBoxState extends State<TransactionProductBox> {
|
|||
color: Color(0xff8B0000),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Image.asset('assets/image-error.webp'),
|
||||
Image.asset('assets/images/image-error.webp'),
|
||||
fadeOutDuration: const Duration(milliseconds: 5),
|
||||
imageBuilder: (context, imageProvider) => Container(
|
||||
width: 300,
|
||||
|
|
|
@ -32,7 +32,7 @@ class _NekoyaState extends State<Nekoya> {
|
|||
colorScheme:
|
||||
ColorScheme.fromSwatch(accentColor: const Color(0xff8B0000))),
|
||||
home: AnimatedSplashScreen(
|
||||
splash: 'assets/logo_transparent.webp',
|
||||
splash: 'assets/images/logo_transparent.webp',
|
||||
pageTransitionType: PageTransitionType.fade,
|
||||
backgroundColor: const Color(0xff1b1c1e),
|
||||
splashIconSize: 150,
|
||||
|
|
|
@ -109,7 +109,7 @@ class _CartState extends State<Cart> {
|
|||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/cart-empty.webp')
|
||||
image: AssetImage('assets/images/cart-empty.webp')
|
||||
)
|
||||
),
|
||||
),
|
||||
|
|
|
@ -57,7 +57,7 @@ flutter_icons:
|
|||
macos: true
|
||||
windows: true
|
||||
web: true
|
||||
image_path: "assets/logo.webp"
|
||||
image_path: "assets/images/logo.webp"
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://dart.dev/tools/pub/pubspec
|
||||
|
@ -69,10 +69,10 @@ flutter:
|
|||
uses-material-design: true
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
assets:
|
||||
- assets/
|
||||
- assets/lottie/
|
||||
- assets/images/
|
||||
- assets/fonts/
|
||||
- assets/icons/
|
||||
- assets/lottie/
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||
# For details regarding adding assets from package dependencies, see
|
||||
|
|