compass_icon 1.0.4 copy "compass_icon: ^1.0.4" to clipboard
compass_icon: ^1.0.4 copied to clipboard

A simple Flutter package to rotate an icon based on different compass directions.

compass_icon #

A simple Flutter package to rotate an icon based on different compass directions.

Features #

  • Can rotate in 45 degree increments
  • Zero external dependencies

Getting started #

Add this package to your project: flutter pub add compass_icon

Usage #

import 'package:compass_icon/compass_icon.dart';

CompassIcon(
    icon: Icon(Icons.arrow_circle_up),          // The icon to rotate
    compassDirection: CompassDirection.north,   // The desired rotation
    initialDirection: CompassDirection.north,   // The original rotation
);
0
likes
160
points
20
downloads

Publisher

verified publishertytydraco.xyz

Weekly Downloads

A simple Flutter package to rotate an icon based on different compass directions.

Repository

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on compass_icon