Flutter Nepali Date Picker

Flutter Nepali Date Picker

Nepali Date Picker

Pub Package Licence Demo effective dart

Material and Cupertino Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports Android, iOS and Fuchsia. Available in Nepali and English Languages.

Flutter Nepali Date Picker

Nepali Date Picker returns data in NepaliDateTime type, which is
included in nepali_utils
package.

NOTE: Use version 3.2.0+2 to support versions prior to Flutter 1.14.x

Click here to launch WEB DEMO

Salient Features

  • Material DatePicker
  • Cupertino DatePicker
  • Adaptive DatePicker
  • Supports from 2000 B.S. to 2099 B.S.

Usage

Material Style Date Picker

import 'package:nepali_date_picker/nepali_date_picker.dart' as picker;

NepaliDateTime _selectedDateTime = await picker.showMaterialDatePicker(
    context: context,
    initialDate: NepaliDateTime.now(),
    firstDate: NepaliDateTime(2000),
    lastDate: NepaliDateTime(2090),
    initialDatePickerMode: DatePickerMode.day,
);

print(_selectedDateTime); // 2076-02-16T00:00:00

Cupertino Style Date Picker

picker.showCupertinoDatePicker(
    context: context,
    initialDate: NepaliDateTime.now(),
    firstDate: NepaliDateTime(2000),
    lastDate: NepaliDateTime(2090),
    language: _language,
    dateOrder: _dateOrder,
    onDateChanged: (newDate) {
        print(_selectedDateTime);
    },
);

Adaptive Date Picker

Shows DatePicker based on Platform.
i.e. Cupertino DatePicker will be shown on iOS while Material on Android and Fuchsia.

NepaliDateTime _selectedDateTime = await picker.showAdaptiveDatePicker(
    context: context,
    initialDate: NepaliDateTime.now(),
    firstDate: NepaliDateTime(2000),
    lastDate: NepaliDateTime(2090),
    language: _language,
    dateOrder: _dateOrder, // for iOS only
    initialDatePickerMode: DatePickerMode.day, // for platform except iOS
);

Screenshots

Material Design (Portrait)

Flutter Nepali Date Picker

Material Design (Landscape)

Flutter Nepali Date Picker

Cupertino Design

Flutter Nepali Date Picker

Flutter Nepali Date Picker

Example

Detailed Example

Source Code

Please Visit Flutter Nepali Date Picker Source Code at GitHub