パッケージ、リポジトリ、アプリカテゴリを検索

super_profile_picture のカバー
パッケージ詳細v1.0.0

super_profile_picture

プロフィール画像を表示するカスタマイズ可能なFlutterウィジェットで、画像とテキストの両方のオプションをサポートしています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
33
いいね数
11
Pub ポイント
150

パッケージをインストール

flutter pub add super_profile_picture

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Super Profile Picture は、画像とテキストアバターの両方をサポートするカスタマイズ可能な Flutter ウィジェットです。柔軟なスタイル、形状オプション、および画像が利用できない場合のダイナミックフォールバックを提供します。ソーシャルアプリ、チャットプラットフォーム、ダッシュボードなどのユーザーインターフェースに最適で、デバイス間で一貫した視覚的表現を保証します。このウィジェットは Flutter プロジェクトにシームレスに統合でき、Android、iOS、Web、macOS、Windows、Linux などすべての主要プラットフォームをサポートしています。

用途

  • ユーザーのプロフィールが表示されます
  • チャットインターフェース
  • ダッシュボードウィジェット
  • ソーシャルメディアアプリ
  • チームメンバー一覧

主な機能

  • 画像とテキストアバターのサポート
  • カスタマイズ可能な形状とサイズ
  • 画像が見つからない場合のフォールバックテキスト
  • プラットフォームに依存しない設計
  • Flutterとの簡単な統合
  • レスポンシブレイアウトの処理

適している対象

  • ソーシャルアプリを開発する開発者
  • 一貫したアバターが必要なUIデザイナー
  • クロスプラットフォーム互換性を必要とするプロジェクト
  • ユーザーのプロフィールやメッセージ機能を備えたアプリ
  • 再利用可能なアバター コンポーネントを希望するチーム

注意事項

  • リモートURL用の画像読み込み設定が必要です
  • 基本的なアバター機能に制限されています
  • 名前からの組み込みアバター生成なし
  • 複雑なUIには追加のスタイリングが必要になる場合があります
  • 外部画像読み込みライブラリに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

logo

License: MIT pub package GitHub popularity version

A customizable Flutter widget for displaying profile pictures, supporting both image and text options. It will show label text in case the image is not provided or fails to load. You can use any image provider, such as NetworkImage, AssetImage, and more, to display the image.

Live Demo & Experiment Page

Live demo: Demo & Experiment site

Installation

i. Add the latest version of this package to your pubspec.yaml file, and run: 'dart pub get':

dependancies:
  super_profile_picture: ^1.0.0

ii. Import the package in your Flutter App and use it.

import 'package:super_profile_picture/super_profile_picture.dart';

Note

The background color will be set according to the first letter of the label. Customization of the background color is not currently supported but may be added in the future.

Code Sample

Default

Screenshot_161 Screenshot_160

SuperProfilePicture(
    label: "Super Profile Picture",
    radius: 30,
);
SuperProfilePicture(
    label: "Super Profile Picture",
    radius: 30,
    image: NetworkImage("https://picsum.photos/200/300.jpg"),

);
Max Label Length

Screenshot_162


SuperProfilePicture(
    label: "Super Profile Picture",
    radius: 30,
    textDecorationProperties: TextDecorationProperties(
         maxLabelLength: 3,  
    ),
);
Empty Name / Blank

Screenshot_163

SuperProfilePicture(
    label: "",
    radius: 30,
);
With Border

Screenshot_164 Screenshot_165

SuperProfilePicture(
    label: "Super Profile Picture",
    radius: 30,
    border: Border.all(width: 6, color: Colors.blue),
);
SuperProfilePicture(
    label: "Super Profile Picture",
    radius: 30,
    image: NetworkImage("https://picsum.photos/200/300.jpg"),
    border: Border.all(width: 6, color: Colors.blue),

);

Properties

  • label
  • radius
  • textDecorationProperties
    • fontSize;
    • maxLabelLength;
    • useFittedBox;
    • fontColor;
    • fontWeight;
    • letterSpacing;
    • padding;
    • fontStyle;
  • imageDecorationProperties
    • frameBuilder;
    • loadingBuilder;
    • errorBuilder;
    • semanticLabel;
    • excludeFromSemantics;
    • width;
    • height;
    • color;
    • opacity;
    • colorBlendMode;
    • fit;
    • alignment;
    • repeat;
    • centerSlice;
    • matchTextDirection;
    • gaplessPlayback;
    • isAntiAlias;
    • filterQuality;
  • border
  • borderRadius
  • image
  • clipBehavior

Future Tasks

  • Add customizable background color function.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。