Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CircleAvatar(
- backgroundColor: Colors.blue.shade200,
- radius: 20,
- child:
- context.read<UserProvider>().userResponse?.data != null
- ? CachedNetworkImage(
- imageUrl:
- context
- .read<UserProvider>()
- .userResponse!
- .data!
- .attributesdata!
- .avatarUrl!,
- imageBuilder:
- (context, imageProvider) => Container(
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- image: DecorationImage(
- image: imageProvider,
- fit: BoxFit.cover,
- ),
- ),
- ),
- placeholder:
- (context, url) => CircularProgressIndicator(),
- errorWidget:
- (context, url, error) => SvgPicture.asset(
- "assets/images/ic_profile.svg",
- fit: BoxFit.cover,
- ),
- )
- : SvgPicture.asset(
- "assets/images/ic_profile.svg",
- fit: BoxFit.cover,
- ),
- ),
Advertisement
Comments
-
- CircleAvatar(
- radius: 28,
- child: CachedNetworkImage(
- height: 60,
- width: 60,
- imageUrl:
- context
- .watch<CommonProvider>()
- .productDetailsResponse
- ?.data
- ?.relatedItems
- ?.data?[position]
- ?.imageUrl ??
- "",
- placeholder:
- (context, url) => Image.asset(
- "assets/images/placeholder_image.png",
- height: 60,
- width: 60,
- fit: BoxFit.fill,
- scale: 10,
- ),
- errorWidget:
- (context, url, error) => Image.asset(
- "assets/images/placeholder_image.png",
- height: 60,
- width: 60,
- fit: BoxFit.fill,
- scale: 10,
- ),
- fit: BoxFit.cover,
- imageBuilder:
- (context, imageProvider) => CircleAvatar(
- backgroundImage: imageProvider,
- ),
- ),
- ),
Add Comment
Please, Sign In to add comment
Advertisement