dob_input_field 2.0.0 icon indicating copy to clipboard operation
dob_input_field: ^2.0.0 copied to clipboard

To input DOB manually from user and do auto validation.

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

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",
          ),

With DateFormat DDMMYYYY

 DOBInputField(
            firstDate: DateTime(1900),
            lastDate: DateTime.now(),
            showLabel: true,
            dateFormatType: DateFormatType.DDMMYYYY,
            autovalidateMode: AutovalidateMode.always,
          ),

With Label and with validation

DOBInputField(
            firstDate: DateTime(1900),
            lastDate:DateTime.now() ,
            showLabel: true,
            autovalidateMode: AutovalidateMode.always,
            fieldLabelText: "With label",
          ),

Without Label and with validation

DOBInputField(
            firstDate: DateTime(1900),
            lastDate:DateTime.now() ,
          ),          

Without Label and without validation

DOBInputField(
            firstDate: DateTime(1900),
            lastDate:DateTime.now() ,
            autovalidateMode: AutovalidateMode.disabled,
          ),          

Additional information #

Stay in touch via LinkedIN | Medium | GitHub

8
likes
120
pub points
85%
popularity

Publisher

verified publisher iconlvikramsah.com.np

To input DOB manually from user and do auto validation.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dob_input_field