v1.0.0
gender_selection
一個用於性別選擇的Flutter套件。它是一個很棒的性別選擇組件,具有酷炫的漸變和動畫效果
20喜歡 39近 30 天下載35Pub 分數
平台暫無資料
這是用於建立性別選擇組件的 Flutter 套件,允許使用者透過酷炫的動畫選擇性別。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter package for gender selection. It is an aweome gender selection widget with cool gradients and animation effects
pub package Awesome Flutter Donate
Add this to your package's pubspec.yaml file:
dependencies:
gender_selection: "^0.0.8"
import 'package:gender_selection/gender_selection.dart';
GenderSelection(
maleText: "", //default Male
femaleText: "", //default Female
linearGradient: pinkRedGradient,
selectedGenderIconBackgroundColor: Colors.indigo, // default red
checkIconAlignment: Alignment.centerRight, // default bottomRight
selectedGenderCheckIcon: null, // default Icons.check
onChanged: (Gender gender){
print(gender);
},
equallyAligned: true,
animationDuration: Duration(milliseconds: 400),
isCircular: true, // default : true,
isSelectedGenderIconCircular: true,
opacityOfGradient: 0.6,
padding: const EdgeInsets.all(3),
size: 120, //default : 120
),
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.