Skip to content

Commit

Permalink
Fixed crash on web with Flutter 3.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyBoy4444 authored Dec 12, 2024
1 parent 87a034d commit cd4e591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/circular_profile_avatar.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library circular_profile_avatar;

import 'package:cached_network_image/cached_network_image.dart';
import 'package:cached_network_image_platform_interface/cached_network_image_platform_interface.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

Expand Down Expand Up @@ -167,6 +168,7 @@ class _CircularProfileAvatarState extends State<CircularProfileAvatar> {
child: CachedNetworkImage(
fit: widget.imageFit,
imageUrl: widget.imageUrl,
imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet,
errorWidget: widget.errorWidget,
placeholder: widget.placeHolder,
imageBuilder: widget.imageBuilder,
Expand Down

0 comments on commit cd4e591

Please sign in to comment.