calendar_picker_ghe 1.0.0 copy "calendar_picker_ghe: ^1.0.0" to clipboard
calendar_picker_ghe: ^1.0.0 copied to clipboard

A lightweight, customizable date picker package for Flutter that supports **Gregorian Calendar** **Hijri Calendar** **Ethiopian Calendar**

calendar_picker_ghe #

A lightweight, customizable Flutter date picker supporting:

  • πŸ—“οΈ Gregorian Calendar
  • πŸŒ™ Hijri (Islamic) Calendar
  • πŸ—Ώ Ethiopian Calendar

Easily switch between calendars using a unified API with a clean, customizable dialog interface.


✨ Features #

  • πŸ” Easy month/year navigation via dropdowns and arrows
  • βœ… Highlights for today’s date and selected date
  • πŸ“† Configurable year range: firstYear, lastYear, and initialYear
  • 🎯 Unified function: showUnifiedDatePicker(...)
  • 🌍 Clean, extensible codebase for integrating other calendars

πŸ“Έ Screenshots #

πŸ“… Gregorian Calendar #

Table View Year Dropdown
[Gregorian Table] [Gregorian Year]

πŸ—Ώ Ethiopian Calendar #

Table View Year Dropdown
[Ethiopian Table] [Ethiopian Year]

πŸŒ™ Hijri Calendar #

Table View Year Dropdown
[Hijri Table] [Hijri Year]

πŸš€ Getting Started #

πŸ“¦ Installation #

Run this command in your Flutter terminal:

flutter pub add calendar_picker_ghe

This will add the following line to your pubspec.yaml and fetch the package:

dependencies:
calendar_picker_ghe: ^1.0.0

πŸ“₯ Import the Package #

In your Dart file:

import 'package:calendar_picker_ghe/calendar_picker.dart';

Alternatively, add the dependency manually in pubspec.yaml and run flutter pub get.

πŸ§ͺ Usage #

 
```dart
import 'package:calendar_picker_ghe/calendar_picker.dart';

final pickedDate = await showUnifiedDatePicker(
  context: context,
  calendarType: CalendarType.ethiopian, // or CalendarType.hijri / .gregorian
  initialYear: 2015,
  firstYear: 2000,
  lastYear: 2030,
);

```

The calendarType can be one of: CalendarType.gregorian, CalendarType.hijri, or CalendarType.ethiopian.

initialYear, firstYear, and lastYear define the visible year range and default year in the dropdown.

To set the initialYear to today’s year:

 
```dart
initialYear: DateTime.now().year, // Gregorian calendar
```

For Hijri and Ethiopian calendars, use:

 
```dart

initialYear: Hijri.now().year,     // Hijri calendar
initialYear: Ethiopian.now().year, // Ethiopian calendar
```

(Requires appropriate date converter utilities from calendar_converter.dart)

πŸ“ License #

This project is licensed under the MIT License.

πŸ“¬ Contact #

For questions, feedback, or contributions:

πŸ“§ Email: halidawell00@gmail.com #

2
likes
0
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight, customizable date picker package for Flutter that supports **Gregorian Calendar** **Hijri Calendar** **Ethiopian Calendar**

Repository (GitHub)
View/report issues

Topics

#calendar-converter #gregorian-date-picker #hijri-date-picker #ethiopian-date-picker

License

unknown (license)

Dependencies

ethiopian_datetime, flutter, hijri

More

Packages that depend on calendar_picker_ghe