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.