rotatable 0.0.3 copy "rotatable: ^0.0.3" to clipboard
rotatable: ^0.0.3 copied to clipboard

A plugin that provides one finger rotation, floating widget with click bounce effect.

rotatable #

Rotatable

This widget has features like rotation with one finger, bounce on click and floatation with a finger. The package also contains gesture recognizer which supports Tap and Pan gestures and is not affected by other recognizers in UI arena.

Usage #

To use this plugin, add rotatable as a dependency in your pubspec.yaml.

Example #

To use one finger rotation feature


class RotatableExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text('Rotatable')),
        body: Center(
            child: Rotatable(Container(
                width: 150,
                height: 150,
                color: Colors.lightBlueAccent))));
  }
}

To create floating widget with finger movement


class FloatingExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text('Floating')),
        body: Center(
            child: BouncingAvatar(Container(
                width: 150,
                height: 150,
                color: Colors.lightBlueAccent))));
  }
}

To create floating rotating tapable widget


class FloatingExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text('Floating')),
        body: Center(
            child: BouncingAvatar(Container(
                width: 150,
                height: 150,
                color: Colors.lightBlueAccent))));
  }
}

3
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A plugin that provides one finger rotation, floating widget with click bounce effect.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on rotatable