v1.0.3profile_photo
バッジ付きのプロフィール写真を表示するためのシンプルなFlutterパッケージ
13いいね 10830日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
bradv123/profile_photo open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Creates a widget that was designed to be used to display a profile photo, but it could also be used in many other ways
Add the dependency and add anywhere in widget tree
Minimum required code for a simple round photo (2nd example)
ProfilePhoto(
totalWidth: 100,
cornerRadius: 80,
color: Colors.blue,
image: const AssetImage('assets/test_profile_photo.jpg'),
),
More complicated example with initals shown, custom boarder and colors, and badge (3rd example)
ProfilePhoto(
totalWidth: 200,
cornerRadius: 25,
color: Colors.blue,
outlineColor: Colors.red,
outlineWidth: 10,
textPadding: 10,
name: 'Brad Varnum',
fontColor: Colors.white,
nameDisplayOption: NameDisplayOptions.initials,
fontWeight: FontWeight.w100,
showName: true,
image: const AssetImage('assets/test_profile_photo.jpg'),
badgeAlignment: Alignment.bottomLeft,
badgeSize: 60,
badgeImage: const AssetImage('assets/star.png'),
onTap: () {
// open profile for example
},
onLongPress: () {
// popup to message user for example
},
),
依存関係一覧 2 件
{"sdk":"flutter"}{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗