v1.1.0gender_picker
수평 또는 수직 방식으로 성별을 선택할 수 있는 매우 훌륭하고 반응성 있는 라이브러리
최신 기능을 갖춘 놀라운 성별 선택 위젯이 프로젝트 디자인에 지원됩니다.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
An awesome gender picker widget comes with latest feature to support in your project design.
The goal of this project is to provide an ultimate widget for selecting the gender.
The source code is 100% Dart, and everything resides in the /lib folder.
Screenshot_20200314_120050_com mateen example
Add this to your package's pubspec.yaml file:
dependencies:
gender_picker: ^1.1.0
import 'package:gender_picker/source/enums.dart';
import 'package:gender_picker/source/gender_picker.dart';
GenderPickerWithImage(
showOtherGender: true,
verticalAlignedText: false,
selectedGender: Gender.Male,
selectedGenderTextStyle: TextStyle(
color: Color(0xFF8b32a8), fontWeight: FontWeight.bold),
unSelectedGenderTextStyle: TextStyle(
color: Colors.white, fontWeight: FontWeight.normal),
onChanged: (Gender gender) {
print(gender);
},
equallyAligned: true,
animationDuration: Duration(milliseconds: 300),
isCircular: true,
// default : true,
opacityOfGradient: 0.4,
padding: const EdgeInsets.all(3),
size: 50, //default : 40
)
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.