搜索插件、代码仓与 APP 分类

flutter_qiblah 封面
插件详情v3.2.0

flutter_qiblah

Flutter Qiblah 是一个包,可让您在应用程序中显示朝向麦加的方向,并支持 Android 和 iOS

AndroidiOS
近 30 天下载
1420
喜欢数
178
Pub 分数
140

安装插件

flutter pub add flutter_qiblah

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Flutter Qiblah 是一个轻量级包,可让开发者将其集成到他们的 Flutter 应用程序中,适用于 Android 和 iOS。它提供基于指南针的精确方向,指向麦加的克尔白,帮助用户确定正确的礼拜方向。该包利用设备传感器和地理定位功能,提供实时的方向指引,非常适合专注于礼拜时间和宗教实践的伊斯兰应用程序。实现简单,设置最少,通过提供可靠的灵性导航,提升用户体验。

适合场景

  • 祈祷时间应用
  • 伊斯兰教育工具
  • 宗教导航功能
  • 移动清真寺应用程序
  • 灵性指导应用

主要特点

  • 实时朝向克尔白方向
  • 设备指南针集成
  • 跨平台支持(Android 和 iOS)
  • 简单 API 集成
  • 基于地理位置的精确计算

适合对象

  • 开发伊斯兰应用程序的开发者
  • 需要祈祷方向的应用程序
  • 穆斯林的教育工具
  • 面向穆斯林用户的移动应用
  • 需要地理位置和传感器数据的项目

使用建议

  • 需要设备传感器(陀螺仪、磁力计)
  • 可能需要位置权限
  • 准确性取决于设备硬件
  • 仅限朝向克尔白的方向
  • 不适用于离线使用,除非进行缓存

原始 README

以下为关联源码仓库的 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.

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

暂无相关数据。