From 8f3f07653c8b5a3d92f0a35eff6aa0557016a038 Mon Sep 17 00:00:00 2001 From: Hixie Date: Fri, 18 Mar 2016 15:02:05 -0700 Subject: [PATCH] Docs for AvatarCircle. --- .../flutter/lib/src/material/circle_avatar.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/flutter/lib/src/material/circle_avatar.dart b/packages/flutter/lib/src/material/circle_avatar.dart index 46749808e3..3554bd14ab 100644 --- a/packages/flutter/lib/src/material/circle_avatar.dart +++ b/packages/flutter/lib/src/material/circle_avatar.dart @@ -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: 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