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

A Flutter plugin that accurately converts Gregorian (lunar) dates to Islamic Hijri dates using a robust astronomical algorithm.

lunar_to_islamic_date #

A Dart/Flutter plugin for converting Gregorian (lunar) dates to Islamic Hijri dates.

pub package License: MIT

Overview #

This plugin provides a simple and accurate way to convert a Gregorian date (year, month, day) into its corresponding Islamic Hijri date. It uses an algorithm based on lunar calculations to provide reliable results. This is designed to be simple to use and integrate into your Dart or Flutter projects.

Features #

  • Gregorian to Hijri Conversion: Converts a given Gregorian year, month, and day to the equivalent Islamic Hijri date.
  • Accurate Calculations: Utilizes a robust algorithm for better accuracy compared to simple approximations.
  • Error Handling: Gracefully handles invalid Gregorian date inputs and returns an appropriate error.
  • Simple API: Easy to integrate into your Dart/Flutter projects.

Getting Started #

1. Add the Dependency #

Add lunar_to_islamic_date to your pubspec.yaml file:

dependencies:
  lunar_to_islamic_date: ^1.0.0 # Replace with the latest version
1
likes
140
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that accurately converts Gregorian (lunar) dates to Islamic Hijri dates using a robust astronomical algorithm.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on lunar_to_islamic_date

Packages that implement lunar_to_islamic_date