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

GitHub リポジトリSM-SHIFAT/Super-Profile-Picture

スーパープロフィール画像

SM-SHIFAT/Super-Profile-Picture open-source repository details.

スーパープロフィール画像 のプロジェクト画像
スター
1
フォーク
0
最終プッシュ(UTC)
2024/10/13
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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.
Syed Mahfuzur Rahman GitHub avatar
GitHub 作者

Syed Mahfuzur Rahman ↗

言語DartC++CMakeCHTMLSwiftKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件

  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^4.0.0

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

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

GitHub Docs — About repositories ↗