nepali_date_picker 8.0.0
nepali_date_picker: ^8.0.0 copied to clipboard
A customizable Nepali date picker for Flutter with full Bikram Sambat calendar support and localization.
π³π΅ Nepali Date Picker + Calendar #
A customizable, fully localized date picker for Flutter, built for the Nepali (Bikram Sambat) calendar.
Features #
- π³π΅ Full Bikram Sambat calendar support, from 1970 BS to 2250 BS
- π Material, Cupertino, and adaptive picker styles
- π― Single date and date range selection
- π Effortless conversion between Bikram Sambat and Gregorian dates
- π¨ Themeable to match your app
Getting Started #
dependencies:
nepali_date_picker: ^<latest_version>
flutter pub get
Usage #
import 'package:nepali_date_picker/nepali_date_picker.dart';
Single date #
final date = await showNepaliDatePicker(
context: context,
initialDate: NepaliDateTime.now(),
firstDate: NepaliDateTime(1970, 2, 5),
lastDate: NepaliDateTime(2250, 11, 6),
);
Date range #
final range = await showNepaliDateRangePicker(
context: context,
firstDate: NepaliDateTime(1970, 2, 5),
lastDate: NepaliDateTime(2250, 11, 6),
);
Adaptive (Material on Android, Cupertino on iOS) #
final date = await showAdaptiveDatePicker(
context: context,
initialDate: NepaliDateTime.now(),
firstDate: NepaliDateTime(1970, 2, 5),
lastDate: NepaliDateTime(2250, 11, 6),
);
See the example app for a complete integration.
Demo #
Try it live at date.sarbagyastha.com.np.
Related Package #
Need more Nepali date/text utilities? Check out nepali_utils for date formatting, number conversion, and more β pairs well with this package.
Contributing #
Contributions are welcome! Open an issue or submit a pull request.
License #
Licensed under the BSD-3 License.
