패키지, 저장소 및 앱 카테고리 검색

user_profile_avatar 표지
패키지 상세v0.1.3

user_profile_avatar

간단한 위젯으로 원형 프로필 사진을 표시하고 이미지가 로드되는 동안 네이티브 원형 진행률 표시기를 표시합니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
77
좋아요
37
Pub 점수
140

패키지 설치

flutter pub add user_profile_avatar

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

이미지 로딩 중에 네이티브 스타일의 원형 프로그레스 인디케이터를 표시하도록 설계된 플러터 위젯입니다. 이미지 가져오기와 시각적 피드백을 원활하게 처리하여 앱 내 사용자 아바타 구현을 간소화합니다. 이 위젯은 안드로이드, iOS, macOS, Windows 및 리눅스에서 일관된 외관을 보장하며, 채팅 인터페이스, 사용자 프로필 및 원형 아바타와 부드러운 로딩 상태가 필요한 모든 UI에 적합합니다.

사용 사례

  • 사용자 프로필 표시
  • 채팅 인터페이스
  • 소셜 미디어 앱 아바타
  • 인증 화면
  • 대시보드 사용자 카드

주요 기능

  • 순환 프로필 이미지 렌더링
  • 내장 원형 진행 표시기
  • 크로스 플랫폼 호환성
  • 간단한 API 통합
  • 자동 이미지 로딩 상태 관리

적합한 대상

  • 채팅 앱을 개발하는 개발자
  • 깨끗한 아바타가 필요한 UI 디자이너
  • 사용자 인증이 있는 앱
  • 크로스플랫폼 모바일 및 데스크톱 앱
  • 프로필 이미지에 최소한의 보일러플레이트가 필요한 프로젝트

고려 사항

  • 원격 이미지를 위해 인터넷 연결이 필요합니다
  • 기본 스타일링을 넘어서는 사용자 정의가 제한적
  • 외부 이미지 로딩 로직에 의존합니다
  • 원형이 아닌 아바타 디자인에는 적합하지 않습니다
  • 고-traffice 앱에서 성능을 위해 추가 캐싱이 필요할 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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.

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.