搜索插件、代码仓与 APP 分类

GitHub 代码仓zeshanghayoomi/flutter_user_profile_avatar

flutter_user_profile_avatar

一个简单的控件,用于显示圆形头像,头像从网络获取,并在图像加载时显示圆形进度指示器。还具有显示通知气泡的功能。

flutter_user_profile_avatar 项目封面
星标
3
复刻
0
最近推送(UTC)
2024年8月8日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

Flutter User Profile Avatar

A simple widget that display round profile picture where the picture is fetched from network and displays circular progress indicator whilst the image is being loaded. Also, has the ability to display notification bubble.


How to use


UserProfileAvatar(
        avatarUrl: 'https://picsum.photos/id/237/5000/5000',
        onAvatarTap: () {
          print('Avatar Tapped..');
        },
        notificationCount: 10,
        notificationBubbleTextStyle: TextStyle(
          fontSize: 30,
          color: Colors.white,
          fontWeight: FontWeight.bold,
        ),
        avatarSplashColor: Colors.purple,
        radius: 100,
        isActivityIndicatorSmall: false,
        avatarBorderData: AvatarBorderData(
          borderColor: Colors.white,
          borderWidth: 5.0,
        ),
      )

Properties

  • avatarUrl
    The url for the image, if this set to null or empty then an empty user avatar gets displayed by default.


  • onAvatarTap
    Use this to perform any action when the avatar gets tapped.

  • notificationCount
    Pass an int to display the notification bubble. 99+ gets displayed if notification count was larger than 100.

  • notificationBubbleTextStyle
    Used to style the notification count, if null then the default one will be applied.

  • avatarSplashColor
    Splash color when user taps on the avatar.

  • radius
    Use this to size the avatar.

    • minimum default radius is 15
    • maximum default radius is 150
  • isActivityIndicatorSmall
    use this to display small/large circular progress indicator (native) when image is loading, default is true.



  • avatarBorderData
    Use this to apply border width and color of the avatar.
Zeshan Hossein Ghayoomi GitHub avatar
GitHub 作者

Zeshan Hossein Ghayoomi ↗

Flutter Mobile App Developer at BT

BTLondon
语言DartRubySwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 3 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗