Commit 8f3f0765 authored by Hixie's avatar Hixie

Docs for AvatarCircle.

parent 8ffd80c0
......@@ -7,6 +7,14 @@ import 'package:flutter/widgets.dart';
import 'constants.dart';
import 'theme.dart';
/// A circle that represents a user.
///
/// Typicially used with a user's profile image, or, in the absence of
/// such an image, the user's initials. A given user's initials should
/// always be paired with the same background color, for consistency.
///
/// This class is used by [Chip].
/// See also: <https://www.google.com/design/spec/components/chips.html#chips-contact-chips>
class CircleAvatar extends StatelessWidget {
CircleAvatar({
Key key,
......@@ -16,7 +24,13 @@ class CircleAvatar extends StatelessWidget {
}) : super(key: key);
final Widget child;
/// The color with which to fill the circle. Changing the background
/// color will cause the avatar to animate to the new color.
final Color backgroundColor;
/// The size of the avatar. Changing the radius will cause the
/// avatar to animate to the new size.
final double radius;
@override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment