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
Add Comment
Please, Sign In to add comment
Advertisement