widget_spinner 0.0.3
widget_spinner: ^0.0.3

Flutter Android iOS web

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,
          ),
        ),
      ),
    );
  }
}
1
likes
100
pub points
52%
popularity

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

Documentation

API reference

Uploader

zan.fraas@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on widget_spinner