Search packages, repositories and app categories

flutter_qiblah cover
Package detailsv3.2.0

flutter_qiblah

Flutter Qiblah is a package that allows you to display Qiblah direction in you app with support for both Android and iOS

AndroidiOS
30-day downloads
1.6K
Likes
178
Pub points
140

Install package

flutter pub add flutter_qiblah

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Qiblah is a lightweight package that enables developers to integrate Qiblah direction functionality into their Flutter applications for both Android and iOS. It provides accurate compass-based orientation toward the Kaaba in Mecca, helping users determine the correct prayer direction. The package leverages device sensors and geolocation to deliver real-time directional guidance, making it ideal for Islamic apps focused on prayer times and religious practices. Simple to implement with minimal setup, it enhances user experience by offering reliable spiritual navigation.

Use cases

  • Prayer time apps
  • Islamic education tools
  • Religious navigation features
  • Mobile mosque applications
  • Spiritual guidance apps

Key features

  • Real-time Qiblah direction
  • Device compass integration
  • Cross-platform support (Android & iOS)
  • Simple API integration
  • Accurate geolocation-based calculations

Suitable for

  • Developers building Islamic apps
  • Apps requiring prayer direction
  • Educational tools for Muslims
  • Mobile applications targeting Muslim users
  • Projects needing geolocation and sensor data

Considerations

  • Requires device sensors (gyroscope, magnetometer)
  • May need location permissions
  • Accuracy depends on device hardware
  • Limited to Qiblah direction only
  • Not suitable for offline use without caching

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Qiblah

pub package License: MIT

Getting Started

To start using this package, add flutter_qiblah dependency to your pubspec.yaml

dependencies:
  flutter_qiblah: '<latest_release>'

The package not not work on the iOS Simulator. To test on iOS please use a real device. Checkout #39

Features

  • Check Device Sensor support (Android)
  • Request Location permission
  • Check GPS Status (Enabled and permission status)
  • Receive Qiblah direction, North direction and Qiblah offset from North

Screens

Here is the Example app demo:

Example app Demo

Based on the LocationStatus class, you can add a check to see the current status of the GPS and display an error widget if it's disabled or permission is denied. check the :memo: Example Code

GPS Disabled

For devices with no sensors, a Map can be displayed with the direction from the current/selected location to Mecca. check the :memo: Example Code

Qiblah with maps

Issues

Please file any issues, bugs or feature request as an issue on our GitHub page.

Want to contribute

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.