GithubHelp home page GithubHelp logo

dob-input-field's Introduction

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

dob-input-field's People

Contributors

lakshydeep-14 avatar

Watchers

 avatar

dob-input-field's Issues

Can't be empty

Hello again,
I've encountered a problem trying to validate a form containing DOBInputField, the issue here is that DOB field could well be null and empty in my case, not being able to set a required flag doesn't allow me to validate the form properly. can we add the possibility to make the field valid if it's not required ?
Thank you !

Date of borth format

Hello and thank you for the package !
How come the package doesnt support a flag for different dob formats ? I can see that it only supports mm/dd/yyyy !
What to do if I wanted to have a different format such as dd/mm/yyyy ?
thanks you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.