diff --git a/lib/ui/widget/user_profile_image.dart b/lib/ui/widget/user_profile_image.dart index 7dff6b21..c4b941be 100644 --- a/lib/ui/widget/user_profile_image.dart +++ b/lib/ui/widget/user_profile_image.dart @@ -4,6 +4,9 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:projectunity/data/core/extensions/context_extension.dart'; +// ignore: depend_on_referenced_packages +import 'package:cached_network_image_platform_interface/cached_network_image_platform_interface.dart'; + class ImageProfile extends StatelessWidget { final String? imageUrl; final double radius; @@ -42,6 +45,7 @@ class ImageProfile extends StatelessWidget { return CachedNetworkImage( fit: BoxFit.cover, imageUrl: imageUrl, + imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet, placeholder: (context, string) { return Icon(Icons.person, size: radius, color: iconColor ?? context.colorScheme.textDisable);