Material Style Date Picker

Material Style Date Picker

Material and Cupertino Style Date Picker with Bikram Sambat(Nepali) Calendar Support.

$0.00

Flutter Market

Flutter Market

Member since 2020

Details

Version:
1.3
Platforms:
iOS, Android  
Released:
1 year ago
Updated:
1 year ago
Category:
Components
Tags:
flutter, app, calendar, material,

Nepali Date Picker

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

nepali_datePicker_demo

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

Salient Features

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

Usage

Material Style Date Picker

```dart import 'package:nepalidatepicker/nepalidatepicker.dart' as picker;

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

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

```

Dart

Cupertino Style Date Picker

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

```

Dart

Adaptive Date Picker

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

dart 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 );