v1.0.3profile_photo
一個簡單的 Flutter 套件,用於顯示帶有徽章的個人檔案照片
13喜歡 108近 30 天下載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 ↗