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

Widget spinner package can be used to rotate desired widget on tap - inspired by fidget spinner! Number of spins and duration of the animation can be modified.

example/main.dart

import 'package:flutter/material.dart';
import 'package:widget_spinner/widget_spinner.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Widget Spinner Test',
      home: WidgetSpinnerExample(),
    );
  }
}

class WidgetSpinnerExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Widget Spinner Test'),
      ),
      body: Center(
        child: WidgetSpinner(
          child: Container(
            width: 200,
            height: 200,
            color: Colors.red,
          ),
        ),
      ),
    );
  }
}
7
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Widget spinner package can be used to rotate desired widget on tap - inspired by fidget spinner! Number of spins and duration of the animation can be modified.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on widget_spinner