tilt_action 0.0.1 copy "tilt_action: ^0.0.1" to clipboard
tilt_action: ^0.0.1 copied to clipboard

outdated

Flutter package that triggers action depending on the position of the phone

tilt_action #

Flutter package that triggers action depending on the tilt position of a phone. The possible positions are tilted up, tilted down or not tilted.

Getting Started #

To use this package add tilt_action to your as a dependency to your pubsec.yaml

Example #

Tilt tilt = Tilt(
  onTiltUp: () {
    // When phone is tilted up, do this
  },
  onNormal: () {
    // When phone is neither up nor down, do this
  },
  onTiltDown: () {
    // When phone is tilted down, do this
  },
);

Testing on a physical device is highly recommended

Full example

5
likes
0
pub points
0%
popularity

Publisher

verified publishertimothyitodo.com

Flutter package that triggers action depending on the position of the phone

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, sensors

More

Packages that depend on tilt_action