Skip to content
pubscout

datetime_picker_formfield_new

2.1.0, released 4 years ago by rekari.de

A TextFormField that emits DateTimes and helps show picker dialogs.

WASM-ready
$ flutter pub add datetime_picker_formfield_new
Source repository

What it does

Provides a text form field widget designed to handle date and time inputs. It integrates with standard Material and Cupertino picker dialogs using callback functions.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need date and time input fields inside Flutter forms
  • You want to format date and time values inside a TextFormField

Skip it when

  • You are looking for calendar grid UI components rather than input fields

Strengths

  • Simplifies date and time input within forms
  • Supports custom pickers and formatting via intl

Weaknesses

  • Forked version needed for newer Flutter releases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
DateTimeField(
  format: DateFormat("yyyy-MM-dd"),
  onShowPicker: (context, currentValue) {
    return showDatePicker(
      context: context,
      firstDate: DateTime(1900),
      initialDate: currentValue ?? DateTime.now(),
      lastDate: DateTime(2100),
    );
  },
)

Alternatives

Packages that do the same job and could replace datetime_picker_formfield_new.

Works with

Packages commonly used together with datetime_picker_formfield_new: ones it builds on, ones built on it, and its own family.