Skip to content
pubscout

birth_picker

1.2.0, released a year ago by softable.me

A customizable Flutter widget for selecting birth dates with auto-formatting.

WASM-ready
$ flutter pub add birth_picker
Source repository

What it does

Provides a dedicated input widget for selecting birth dates with support for platform-specific pickers on iOS and Android. It handles auto-formatting of date fields, validation, localization, and direct keyboard input alongside a date picker icon button.

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

Use it when

  • You need a specialized birth date input field with automatic formatting and validation.
  • You want platform-specific date pickers combined with direct keyboard entry.

Skip it when

  • You need a general-purpose calendar or date range picker rather than a single birth date input.

Strengths

  • Supports both iOS-style Cupertino and Android-style Material pickers.
  • Allows direct keyboard input with auto-formatting for year, month, and day.
  • Includes localization support.

Weaknesses

  • Requires manual initialization of date formatting using intl package.
  • Limited to single birth date selection use-cases.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Initialize date formatting by calling initializeDateFormatting() in your main function before running the app.

BirthPicker(
  onChanged: (dateTime) {
    if (dateTime != null) {
      print('Selected Date: ${dateTime.toIso8601String()}');
    } else {
      print('Invalid Date');
    }
  },
)

Alternatives

Packages that do the same job and could replace birth_picker.

Works with

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