compass_pro 1.1.0
compass_pro: ^1.1.0 copied to clipboard
A professional compass widget with heading, coordinates, location, and elevation support.
Compass_Pro π§ #
A Flutter widget for displaying a beautiful Compass with customizable icons, colors, styles, and more.
β¨ Features #
- π Real-time compass heading updates
- π¨ Customizable UI (icons, styles, and layouts)
- π‘ Built with flutter_compass, geolocator, and geocoding
- π§ Lightweight & easy to use
π¦ Installation #
Add the package to your pubspec.yaml:
dependencies:
compass_pro: ^1.0.9
Then run:
flutter pub get
Import the package:
import 'package:compass_pro/compass_pro.dart';
π¦ Permissions #
For Android #
Add this permissions to your AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
For iOS #
Add this permissions to your Info.plist:
<key>NSLocationWhenInUseUsageDescription</key>
<string>We use your location to show compass direction.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to your location to show compass direction.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to your location even when running in the background.</string>
Then run:
flutter clean
flutter pub get
flutter run
Import the package:
import 'package:compass_pro/compass_pro.dart';
π· Screenshots #
π¨βπ» Developed By
Md. Noor-Alom Siddik
π‘ Contributing #
Contributions are welcome!
- Fork the repo
- Create your feature branch
- Commit your changes
- Open a Pull Request
β€οΈ Support #
If you like this package, give it a β on pub.flutter-io.cn and share it!