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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'floating.dart';
import 'rotatable.dart';
import 'floating_and_rotating.dart';

void main() {
  runApp(
      MaterialApp(home: MyApp(), theme: ThemeData(primarySwatch: Colors.blue)));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text('Flutter Rotatable Floating')),
        body: Center(
            child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            FlatButton(
                minWidth: 200,
                padding: EdgeInsets.symmetric(vertical: 10),
                splashColor: Colors.blueAccent,
                color: Colors.lightBlueAccent,
                onPressed: () {
                  Navigator.of(context).push(
                      MaterialPageRoute<RotatableExample>(
                          builder: (BuildContext con) => RotatableExample()));
                },
                child: RichText(
                  text: TextSpan(children: [
                    TextSpan(text: 'Rotatable'),
                    WidgetSpan(
                        child: Icon(
                      Icons.touch_app,
                      color: Colors.blueGrey,
                    ))
                  ]),
                )),
            FlatButton(
                minWidth: 200,
                padding: EdgeInsets.symmetric(vertical: 10),
                splashColor: Colors.blueAccent,
                color: Colors.lightBlueAccent,
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute<FloatingExample>(
                      builder: (BuildContext con) => FloatingExample()));
                },
                child: RichText(
                  text: TextSpan(children: [
                    TextSpan(text: 'Floating'),
                    WidgetSpan(
                        child: Icon(
                      Icons.touch_app,
                      color: Colors.blueGrey,
                    ))
                  ]),
                )),
            FlatButton(
                minWidth: 200,
                padding: EdgeInsets.symmetric(vertical: 10),
                splashColor: Colors.blueAccent,
                color: Colors.lightBlueAccent,
                onPressed: () {
                  Navigator.of(context).push(
                      MaterialPageRoute<FloatingAndRotatingExample>(
                          builder: (BuildContext con) =>
                              FloatingAndRotatingExample()));
                },
                child: RichText(
                  text: TextSpan(children: [
                    TextSpan(
                        text: 'Floating and rotating'
                            ''),
                    WidgetSpan(
                        child: Icon(
                      Icons.touch_app,
                      color: Colors.blueGrey,
                    ))
                  ]),
                ))
          ],
        )));
  }
}
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