🇳🇵 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.