Skip to content

Commit 0daa0d4

Browse files
committed
Create Empty Placeholder Image
*Create an empty 1x1 pixel placeholder image to prevent AssetBundle errors with FadeInImage.
1 parent a51d335 commit 0daa0d4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

assets/images/placeholder_empty.png

68 Bytes
Loading

lib/loading_gifs.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,13 @@ const String circularProgressIndicator =
3737
/// ```
3838
const String circularProgressIndicatorSmall =
3939
"packages/loading_gifs/assets/images/circular_progress_indicator_small.gif";
40+
41+
/// Transparent 1x1 pixel empty placeholder.
42+
/// [FadeInNetworkImage] requires a valid placeholder
43+
/// image. Use this empty placeholder to avoid
44+
/// AssetBundle errors.
45+
/// ```dart
46+
/// FadeInImage.assetNetwork(placeholder: placeholderEmpty, image: 'image_path');
47+
///```
48+
const String placeholderEmpty =
49+
"packages/loading_gifs/assets/images/placeholder_empty.png";

0 commit comments

Comments
 (0)