FLUTTER ECOSYSTEM

medyas/flutter_qiblah

Flutter Qiblah 是一個插件,可讓您在應用程式中顯示克爾白方向,支援 Android 和 iOS。

flutter_qiblah 專案封面
Stars
153
Forks
107
最近推送(UTC)
2026年2月8日
專案狀態
未封存
medyas GitHub avatar
GITHUB User

medyas ↗

Mobile Developer - Certified Associate Android Developer

Tunis, Tunisia官方網站 ↗
語言DartRubyKotlinSwiftObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.