Skip to content

Commit

Permalink
Fix Wep app crash (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s authored Dec 18, 2024
1 parent fb4527f commit 697f7af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ui/widget/user_profile_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 697f7af

Please sign in to comment.