0 purchases
dob input field
DOB Input Field package helps you to take dob from user manually. This package validate user inputted DOB automatically.
Features #
Take DOB manually.
3 different date Formats
Auto validation
Fixed character length
Date type input keyboard
User preferred Decoration
Getting started #
Install the package :
dob_input_field: ^2.0.0
copied to clipboard
Usage #
Import the package first.
With DateFormat YYYYMMDD
DOBInputField(
firstDate: DateTime(1900),
lastDate: DateTime.now(),
showLabel: true,
dateFormatType: DateFormatType.YYYYMMDD,
autovalidateMode: AutovalidateMode.always,
fieldLabelText: "With label",
),
copied to clipboard
With DateFormat DDMMYYYY
DOBInputField(
firstDate: DateTime(1900),
lastDate: DateTime.now(),
showLabel: true,
dateFormatType: DateFormatType.DDMMYYYY,
autovalidateMode: AutovalidateMode.always,
),
copied to clipboard
With Label and with validation
DOBInputField(
firstDate: DateTime(1900),
lastDate:DateTime.now() ,
showLabel: true,
autovalidateMode: AutovalidateMode.always,
fieldLabelText: "With label",
),
copied to clipboard
Without Label and with validation
DOBInputField(
firstDate: DateTime(1900),
lastDate:DateTime.now() ,
),
copied to clipboard
Without Label and without validation
DOBInputField(
firstDate: DateTime(1900),
lastDate:DateTime.now() ,
autovalidateMode: AutovalidateMode.disabled,
),
copied to clipboard
Additional information #
Stay in touch via LinkedIN | Medium | GitHub
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.