Skip to content

Added backgroundImage to CircleAvatar. - #4971

Merged
dragostis merged 1 commit into
masterfrom
circle-avatar-background-image
Jul 21, 2016
Merged

dragostis merged 1 commit into
masterfrom
circle-avatar-background-image

Conversation

@dragostis

Copy link
Copy Markdown
Contributor

In order to have an efficient way to display clipped avatars,
backgroundImage was added inside of the container's BoxDecoration.
Fixes #4964.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be an ImageProvider rather than an entire background image. The other properties (e.g., alignment, fit, and repeating) don't make sense for clients to control.

@dragostis
dragostis force-pushed the circle-avatar-background-image branch from 131b836 to 710cb0f Compare July 20, 2016 16:23
In order to have an efficient way to display clipped avatars,
backgroundImage was added inside of the container's BoxDecoration.
Fixes #4964. This commit also fixes #4567 where the radius property
actually sets the diamater.
@dragostis
dragostis force-pushed the circle-avatar-background-image branch from 710cb0f to 83f3724 Compare July 20, 2016 16:52
@HansMuller

Copy link
Copy Markdown
Contributor

LGTM

@dragostis
dragostis merged commit 3aa26cb into master Jul 21, 2016
@dragostis
dragostis deleted the circle-avatar-background-image branch July 21, 2016 18:16
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CircleAvatar doesn't clip child

3 participants