v1.0.0super_profile_picture
프로필 사진을 표시하는 사용자 정의 가능한 Flutter 위젯으로 이미지 및 텍스트 옵션을 모두 지원합니다.
SM-SHIFAT/Super-Profile-Picture open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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: Demo & Experiment site
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';
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.
SuperProfilePicture(
label: "Super Profile Picture",
radius: 30,
);
SuperProfilePicture(
label: "Super Profile Picture",
radius: 30,
image: NetworkImage("https://picsum.photos/200/300.jpg"),
);
SuperProfilePicture(
label: "Super Profile Picture",
radius: 30,
textDecorationProperties: TextDecorationProperties(
maxLabelLength: 3,
),
);
SuperProfilePicture(
label: "",
radius: 30,
);
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),
);
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^4.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗