FLUTTER ECOSYSTEM

404shades/Gender-Selection-Flutter

這是用於建立性別選擇組件的 Flutter 套件,允許使用者透過酷炫的動畫選擇性別。

性別選擇-Flutter 專案封面
Stars
8
Forks
8
最近推送(UTC)
2021年3月11日
專案狀態
未封存
Rohan Malik GitHub avatar
GITHUB User

Rohan Malik ↗

404Shades

Pune, India
語言DartObjective-CJava

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

gender_selection

A Flutter package for gender selection. It is an aweome gender selection widget with cool gradients and animation effects

pub package Awesome Flutter Donate

Demo

https://raw.githubusercontent.com/404shades/Gender-Selection-Flutter/master/img/banner.jpg https://raw.githubusercontent.com/404shades/Gender-Selection-Flutter/master/img/demo.png

Installing

Add this to your package's pubspec.yaml file:

dependencies:
gender_selection: "^0.0.8"

Simple Usage

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

),

✌️ Contribution

  1. Fork the repositiry from package
  2. Create your own branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Getting Started

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.