|
|
@@ -23,13 +23,14 @@ class CachedNetworkImageWidget extends StatelessWidget {
|
|
|
final Widget? placeholder;
|
|
|
final Widget? errorWidget;
|
|
|
final bool cached;
|
|
|
- final String? cachkey;
|
|
|
+ final Map<String, String>? httpHeaders;
|
|
|
+ final String? cacheKey;
|
|
|
final Widget? loadwidget;
|
|
|
|
|
|
const CachedNetworkImageWidget({
|
|
|
super.key,
|
|
|
required this.imageUrl,
|
|
|
- required this.cachkey,
|
|
|
+ required this.cacheKey,
|
|
|
required this.fit,
|
|
|
this.count = 10,
|
|
|
this.height,
|
|
|
@@ -38,6 +39,7 @@ class CachedNetworkImageWidget extends StatelessWidget {
|
|
|
this.placeholder,
|
|
|
this.cached = true,
|
|
|
this.loadwidget = const CircularProgressIndicator(),
|
|
|
+ this.httpHeaders,
|
|
|
});
|
|
|
|
|
|
@override
|
|
|
@@ -49,7 +51,7 @@ class CachedNetworkImageWidget extends StatelessWidget {
|
|
|
url: imageUrl,
|
|
|
cached: cached,
|
|
|
count: count,
|
|
|
- cachkey: cachkey,
|
|
|
+ cachkey: cacheKey,
|
|
|
),
|
|
|
),
|
|
|
child: Builder(
|
|
|
@@ -96,12 +98,12 @@ class CachedNetworkImageProvider
|
|
|
final Widget? placeholder;
|
|
|
final Widget? errorWidget;
|
|
|
final bool cached;
|
|
|
- final String? cachkey;
|
|
|
+ final String? cacheKey;
|
|
|
final Widget? loadwidget;
|
|
|
|
|
|
const CachedNetworkImageProvider({
|
|
|
required this.imageUrl,
|
|
|
- required this.cachkey,
|
|
|
+ required this.cacheKey,
|
|
|
required this.fit,
|
|
|
this.count = 10,
|
|
|
this.height,
|