Skip to content
pubscout

flutter_datetime_picker_bdaya

3.0.2, released 3 years ago by bdaya-dev.com

A date and time picker widget for Flutter supporting multiple languages and custom pickers.

WASM-ready
$ flutter pub add flutter_datetime_picker_bdaya
Source repository

What it does

Allows users to select dates, times, or combined date-time values through a customizable picker interface. It supports multiple languages and provides options to define custom picker models.

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

Use it when

  • You need a customizable date and time picker in your Flutter application.
  • You require multi-language support for date-time picking out-of-the-box.

Skip it when

  • You prefer using standard Material or Cupertino date pickers provided directly by Flutter's core framework.
  • You do not need customization or internationalization beyond standard defaults.

Strengths

  • Supports a wide variety of languages and locales.
  • Allows custom picker models via CommonPickerModel extension.

Weaknesses

  • Forked from an inactive package repository.
  • Imperative function call style rather than a standard Flutter form field widget.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TextButton(
    onPressed: () {
        DatePickerBdaya.showDatePicker(context,
                              showTitleActions: true,
                              minTime: DateTime(2018, 3, 5),
                              maxTime: DateTime(2019, 6, 7), onChanged: (date) {
                            print('change $date');
                          }, onConfirm: (date) {
                            print('confirm $date');
                          }, currentTime: DateTime.now(), locale: LocaleType.zh);
    },
    child: Text(
        'show date time picker (Chinese)',
        style: TextStyle(color: Colors.blue),
    ));

Alternatives

Packages that do the same job and could replace flutter_datetime_picker_bdaya.