Skip to content

Commit

Permalink
icon and loader fixes..(replaced circular loading with still image)
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Apr 24, 2024
1 parent 0dd8d21 commit 18ee75a
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 33 deletions.
Binary file removed assets/icons/Bloomee_Logo.png
Binary file not shown.
Binary file removed assets/icons/Bloomee_Logo_fore.png
Binary file not shown.
Binary file removed assets/icons/Bloomee_Logo_fore_mini.png
Binary file not shown.
Binary file removed assets/icons/Bloomee_Logo_main.png
Binary file not shown.
Binary file removed assets/icons/Bloomee_Logo_masked.png
Binary file not shown.
Binary file removed assets/icons/Bloomee_Logo_mini.png
Binary file not shown.
Binary file added assets/icons/lazy_loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions lib/screens/screen/song_info_screen.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'package:Bloomee/model/songModel.dart';
import 'package:Bloomee/theme_data/default.dart';
import 'package:Bloomee/utils/load_Image.dart';
Expand Down
34 changes: 3 additions & 31 deletions lib/utils/load_Image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,37 +54,9 @@ CachedNetworkImage loadImageCached(coverImageURL,
imageUrl: coverImageURL,
memCacheWidth: 500,
// memCacheHeight: 500,
placeholder: (context, url) => Padding(
padding: const EdgeInsets.all(10.0),
child: LayoutBuilder(
builder: (context, constraints) {
if (constraints.maxHeight > constraints.maxWidth) {
return SizedBox(
height: constraints.maxWidth,
width: constraints.maxWidth,
child: const AspectRatio(
aspectRatio: 1.0,
child: Center(
child: CircularProgressIndicator(
color: Default_Theme.accentColor2),
),
),
);
} else {
return SizedBox(
height: constraints.maxHeight,
width: constraints.maxHeight,
child: const AspectRatio(
aspectRatio: 1.0,
child: Center(
child: CircularProgressIndicator(
color: Default_Theme.accentColor2),
),
),
);
}
},
),
placeholder: (context, url) => Image(
image: const AssetImage("assets/icons/lazy_loading.png"),
fit: fit,
),
errorWidget: (context, url, error) => Image(
image: placeHolder,
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ flutter:
assets:
- assets/.env
- assets/icons/bloomee_new_logo_c.png
- assets/icons/lazy_loading.png

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
Expand Down

0 comments on commit 18ee75a

Please sign in to comment.