birth_picker 0.0.4 copy "birth_picker: ^0.0.4" to clipboard
birth_picker: ^0.0.4 copied to clipboard

A customizable Flutter widget for selecting birth dates with auto-formatting and platform-specific UI.

BirthPicker Flutter Package #

pub package Score Platform GitHub stars GitHub forks GitHub issues GitHub pull requests

A customizable date picker widget for Flutter applications, designed specifically for selecting birth dates. It offers a seamless user experience by supporting platform-specific date pickers (Cupertino for iOS and Material for Android) and customizable UI components.

Keyboard Input Example iOS Date Picker Example Android Date Picker Example
screenshot1 screenshot2 Screenshot3

Features #

  • Supports both iOS-style (Cupertino) and Android-style (Material) date pickers.
  • Auto-formats date fields (year, month, day) and validates input.
  • Supports localization with customizable date field order.
  • Flexible input options:
    • Allows users to enter the date directly using the keyboard.
    • Provides an icon button to easily select the date using a platform-specific date picker.

Installation #

  1. Add the following line to your pubspec.yaml under dependencies:

    birth_picker: ^0.0.2
    
  2. Run the following command to install the package:

    flutter pub get
    

Usage #

Before using the BirthPicker widget, initialize date formatting by calling initializeDateFormatting() in your main function:

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await initializeDateFormatting(); // Important: Initialize date formatting
  runApp(const MyApp());
}
8
likes
0
points
44
downloads

Publisher

verified publishersoftable.me

Weekly Downloads

A customizable Flutter widget for selecting birth dates with auto-formatting and platform-specific UI.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on birth_picker