πŸ‡³πŸ‡΅ Nepali Date Picker + Calendar πŸ“…

Pub Package Licence Demo

A beautiful, customizable date picker widget for Flutter, fully localized for the Nepali (Bikram Sambat) calendar. This package allows users to select dates in the Nepali/Indian calendar system, making it perfect for apps targeting Nepali-speaking audiences or integrating regional calendar functionality.

πŸš€ Features

  • πŸ‡³πŸ‡΅ Bikram Sambat (Nepali) Calendar support

  • 🎨 Customizable UI to match your app’s theme

  • ⚑ Easy Integration into any Flutter project

  • βœ… Date Validation for valid Nepali dates only

  • πŸ“† Supports date from 1970 BS to 2250 BS

  • πŸ”„ Effortlessly convert between Bikram Sambat and Gregorian dates.

πŸ› οΈ Getting Started

Add this to your pubspec.yaml:

dependencies:
  nepali_date_picker: ^<latest_version>

Then run:

flutter pub get

πŸ’‘ Usage

Import the package:

import 'package:nepali_date_picker/nepali_date_picker.dart';

Example usage:

final selectedDateTime = await showNepaliDatePicker(
  context: context,
  initialDate: _selectedDateTime ?? NepaliDateTime.now(),
  firstDate: NepaliDateTime(1970, 2, 5),
  lastDate: NepaliDateTime(2250, 11, 6),
  initialDatePickerMode: DatePickerMode.day,
);

print(selectedDateTime); // Outputs the selected date in NepaliDateTime type.

For a complete example, check out the example.

🌐 Demo

Try the Nepali Date Picker live on the web! Check out the demo page here:

πŸ‘‰ https://date.sarbagyastha.com.np

If you need additional Nepali date and text utilities, check out the nepali_utils package! It offers handy helpers for Nepali date formatting, number conversion, and more. Perfect to use alongside nepali_date_picker!

🀝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

πŸ“„ License

Licensed under the BSD-3 License.

Libraries

nepali_date_picker