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

A beautifully designed Flutter Qibla compass widget that uses the device's GPS and compass sensor to accurately determine the direction of the Kaaba in Mecca. Supports both Arabic and English, with sm [...]

130/ 160
pub points
13
downloads

We analyzed this package 3 days ago, and awarded it 130 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/yourname/qibla_compass was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

16 out of 37 API elements (43.2 %) have documentation comments.

Some symbols that are missing documentation: qibla_compass.QiblaCompassWidget.QiblaCompassWidget.new, qibla_compass.QiblaCompassWidget.alignmentThresholdDegrees, qibla_compass.QiblaCompassWidget.deviceHeading, qibla_compass.QiblaCompassWidget.qiblaBearing, qibla_compass.QiblaCompassWidget.size.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that imports:
  • package:geolocator_apple/geolocator_apple.dart that declares support for platforms: iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that declares support for platforms: Android, iOS, Windows, macOS, Web.
Package does not support platform `macOS`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that imports:
  • package:geolocator_android/geolocator_android.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that imports:
  • package:geolocator_apple/geolocator_apple.dart that declares support for platforms: iOS, macOS.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that imports:
  • package:geolocator_apple/geolocator_apple.dart that declares support for platforms: iOS, macOS.
Package does not support platform `iOS`.

Because:

  • package:qibla_compass/qibla_compass.dart that imports:
  • package:qibla_compass/src/qibla_screen.dart that imports:
  • package:geolocator/geolocator.dart that imports:
  • package:geolocator_android/geolocator_android.dart that declares support for platforms: Android.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 14 issues. Showing the first 2:

INFO: 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss.

lib/src/qibla_compass_widget.dart:114:44

    ╷
114 │                   color: widget.theme.gold.withOpacity(isAligned ? 0.5 : 0.2),
    │                                            ^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/qibla_compass_widget.dart

INFO: 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss.

lib/src/qibla_compass_widget.dart:153:44

    ╷
153 │                   color: widget.theme.gold.withOpacity(0.6),
    │                                            ^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/qibla_compass_widget.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
flutter_compass ^0.8.0 0.8.1 0.8.1
geolocator ^12.0.0 12.0.0 14.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
fixnum - 1.1.1 1.1.1
geolocator_android - 4.6.2 5.0.3
geolocator_apple - 2.3.14 2.3.14
geolocator_platform_interface - 4.3.0 4.3.0
geolocator_web - 4.1.4 4.1.4
geolocator_windows - 0.2.5 0.2.5
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
plugin_platform_interface - 2.1.8 2.1.8
typed_data - 1.4.0 1.4.0
uuid - 4.6.0 4.6.0
vector_math - 2.4.2 2.4.2
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^12.0.0` on geolocator does not support the stable version `13.0.0`.

Try running dart pub upgrade --major-versions geolocator to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.18, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
130
points
13
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A beautifully designed Flutter Qibla compass widget that uses the device's GPS and compass sensor to accurately determine the direction of the Kaaba in Mecca. Supports both Arabic and English, with smooth animations and real-time alignment feedback.

Homepage

License

MIT (license)

Dependencies

flutter, flutter_compass, geolocator

More

Packages that depend on qibla_compass