iconable_avatar 0.0.4

SDKflutter
Platformandroidioswindowslinuxmacosweb

Flutter package to show an avatar with a clickable custom icon on the bottom. It's a customizable widget

iconable_avatar

Flutter package to show an avatar with a clickable custom icon on the bottom. It's a customizable widget

Instalation

Include iconable_avatar in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  iconable_avatar: version

Usage

IconableAvatar(
  avatar: CircleAvatar(
    backgroundColor: Colors.amberAccent,
    radius: 50,
  ),
  onIconTap: () {
    print('Hi :)');
  },
)

Constructor params

NameDescriptionRequiredDefault
avatarWidget to use as avatar. You can use a CircleAvatar widget (make sure to pass a radius > 0), in otherwise, pass a custom radiusTrue
customRadiusDouble value to indicate the avatar radius when using a not CircleAvatar widgetFalse
iconVisibleBool value to indicate when to show or hide the bottom sectionFalsetrue
onIconTapCallback use when tap on iconFalse
iconIcondata to show on the bottom sectionFalseIcons.camera_alt
iconColorColor used as icon colorFalseColors.black
backgroundIconColorColor used as background for bottom sectionFalseColor.fromRGBO(0, 0, 0, 0.3)

Development

Want to contribute? Great!. Open a new PR here or a new issue here