tarkalabs / tarka-ui-kit-flutter

UI Kit and Design System for building apps with Flutter
https://pub.dev/packages/tarka_ui
MIT License
7 stars 0 forks source link

Feature/avatar #2

Closed Ibrahimhass closed 1 year ago

Ibrahimhass commented 1 year ago

Components Included:

Here is how the exposed interface for this class looks like

TKAvatar(
  avatarSize: TKAvatarSize.xl,
  avatarContent: TKAvatarContent(
    text: "IH",
    type: TKAvatarContentType.text,
  ),
),
TKAvatar(
  avatarSize: TKAvatarSize.m,
  avatarContent: TKAvatarContent(
    type: TKAvatarContentType.icon,
    icon: Icon(Icons.construction),
  ),
  isBadged: true,
),
TKAvatar(
  avatarSize: TKAvatarSize.xxl,
  avatarContent: TKAvatarContent(
    type: TKAvatarContentType.image,
    image: const TKImage(
      imageUrl:
          "https://avatars.githubusercontent.com/u/16992520?v=4",
    ),
  ),
  isBadged: true,
),