date_format_field 0.0.2
date_format_field: ^0.0.2 copied to clipboard
An automatic date formater widget.
A Textfield supporting automatic date formating.
Styles #
Type 1
Type 2
Type 3
Type 4
Features #
This textfield supports four date time formating options:
- Four Date formating styles
- Automatic addition of separators
- Two Spearators for time formating
- Sets Keboard type to date keyboard
Getting Started #
In your flutter project pubspec.yaml add the dependency
dependencies:
date_time_formater: any
Usage #
- Install the package by adding the following in your
pubspec.yamlfile
date_time_formater: latest_version
- Add this field to your widget screen using
import 'package:date_format_field/date_format_field.dart';
DateFormatField(
type: DateFormatType.type4,
)
Add Styling
The widget makes use of InputDecorator which is the same as the default styling supported by flutter
example:
DateFormatField(
type: DateFormatType.type4,
decoration: InputDecoration(
hintText: 'DD/MM/YY',
border: InputBorder.none,
icon: Icon(Icons.calendar_month)
),
)