smooth_compass 2.0.17 smooth_compass: ^2.0.17 copied to clipboard
smooth compass with animated rotation and custom widgets support for both(android and ios)
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smooth_compass
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
smooth_compass: ^2.0.17
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smooth_compass/utils/smooth_compass.dart';
import 'package:smooth_compass/utils/src/compass.dart';
import 'package:smooth_compass/utils/src/compass_ui.dart';
import 'package:smooth_compass/utils/src/qibla_utils.dart';
import 'package:smooth_compass/utils/src/widgets/error_widget.dart';