Pakete, Repositories und App-Kategorien suchen

Cover von user_profile_avatar
Paketdetailsv0.1.3

user_profile_avatar

Ein einfaches Widget, das ein rundes Profilbild anzeigt und während des Ladens der Bildes einen nativen kreisförmigen Fortschrittsindikator anzeigt.

AndroidiOSmacOSWindowsLinux
30-Tage-Downloads
77
Likes
37
Pub-Punkte
140

Paket installieren

flutter pub add user_profile_avatar

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein Flutter-Widget, das dazu entwickelt wurde, ein kreisförmiges Profilbild mit einem nativen aussehenden kreisförmigen Fortschrittsindikator während des Bildladens anzuzeigen. Es vereinfacht die Implementierung von Benutzeravatars in Apps, indem es das Abrufen von Bildern und visuelle Rückmeldungen nahtlos handhabt. Das Widget sorgt für eine konsistente Erscheinung über Plattformen hinweg und unterstützt Android, iOS, macOS, Windows und Linux. Ideal für Chat-Oberflächen, Benutzerprofile und jede Benutzeroberfläche, die runde Avatare mit reibungslosen Ladezuständen erfordert.

Anwendungsfälle

  • Benutzerprofil wird angezeigt
  • Chat-Schnittstellen
  • Avatar von Social-Media-Apps
  • Authentifizierungsbildschirme
  • Benutzerkarten für das Dashboard

Hauptmerkmale

  • Rundes Profilbildrendering
  • Native Kreisverlauf-Anzeige
  • Plattformübergreifende Kompatibilität
  • Einfache API-Integration
  • Automatische Bildladezustandsverwaltung

Geeignet für

  • Entwickler, die Chat-Apps erstellen
  • UI-Designer, die saubere Avatare benötigen
  • Apps mit Benutzerauthentifizierung
  • Plattformübergreifende mobile und Desktop-Anwendungen
  • Projekte, die minimalen Boilerplate für Profilbilder erfordern

Hinweise

  • Benötigt Internetzugang für Remote-Bilder
  • Eingeschränkte Anpassung über die grundlegende Gestaltung hinaus
  • Abhängig von der externen Bildlade-Logik
  • Nicht geeignet für nicht-kreisförmige Avatar-Designs
  • Für Leistungssteigerung in Apps mit hohem Datenverkehr könnte zusätzliche Caching notwendig sein

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.