ub3lal преди 1 месец
родител
ревизия
21f65c47b0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      lib/src/CachedNetworkImageWidget.dart

+ 2 - 2
lib/src/CachedNetworkImageWidget.dart

@@ -5,7 +5,7 @@ class CachedNetworkImageWidget extends StatelessWidget {
   const CachedNetworkImageWidget({
     super.key,
     required this.imageUrl,
-    required this.count,
+    this.count = 10,
     this.width,
     this.height,
     this.placeholder,
@@ -13,7 +13,7 @@ class CachedNetworkImageWidget extends StatelessWidget {
     required this.cached,
     this.httpHeaders,
     this.cacheKey,
-    this.loadwidget,
+    this.loadwidget = const CircularProgressIndicator(),
     required this.imageBuilder,
   });
   final String imageUrl;