You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is optimized for size so it only includes the base asset. Change the size of the loading spinners with `scale` and `placeholderScale`.
33
+
### Size
34
+
35
+
This library is optimized for size so it only includes the base asset sizes. Change the size of the loading spinners using `scale` and `placeholderScale`.
When loading images whose dimensions are unknown ahead of time, use `cupertinoActivityIndicatorSmall` instead of `cupertinoActivityIndicator`. `cupertinoActivityIndicatorSmall` is a min height variant of `cupertinoActivityIndicator` which allows Flutter to correctly expand the loaded image into the layout.
46
+
47
+
The small variant should be used when loading a list of images or compositing an image from multiple images.
48
+
49
+
```dart
50
+
ListView(
51
+
children: <Widget>[
52
+
FadeInImage.assetNetwork(
53
+
placeholder: cupertinoActivityIndicatorSmall,
54
+
image: "image_1.png"),
55
+
FadeInImage.assetNetwork(
56
+
placeholder: cupertinoActivityIndicatorSmall,
57
+
image: "image_2.png"),
58
+
FadeInImage.assetNetwork(
59
+
placeholder: cupertinoActivityIndicatorSmall,
60
+
image: "image_3.png"),
61
+
],
62
+
)
63
+
```
64
+
41
65
## Assets
42
66
43
67
### iOS (Cupertino) Loading Indicators
@@ -94,7 +118,7 @@ Loading GIFs is licensed under Zero-Clause BSD and released as Emailware. If you
0 commit comments