flutter_spinkit 2.0.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new--

✨ Flutter Spinkit

pub package

A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.

🎖 Installing

dependencies:
    flutter_spinkit: "^1.0.0"

⚡️ Import

import 'package:flutter_spinkit/flutter_spinkit.dart';

🎮 How To Use

SpinKitRotatingCircle(
  color: Colors.white,
  width: 50.0,
  height: 50.0,
);

The following animations requires extra assets in your pubspec.yaml. SpinKitHourGlass & SpinKitDualRing.

assets:
  - packages/flutter_spinkit/assets/hourglass.png
  - packages/flutter_spinkit/assets/dual-ring.png

For more info, please, refer to the showcase.dart in the example.

🚀 Roadmap


RotatingPlane

DoubleBounce

Wave

WanderingCubes

FadingFour

FadingCube

Pulse

ChasingDots

ThreeBounce

Circle

CubeGrid

FadingCircle

RotatingCircle

FoldingCube

PumpingHeart

DualRing

FadingGrid

HourGlass

Ring

Ripple

SpinningCircle

Some GIF images gotten from Android Spinkit.

🐛 Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

❗️ Note

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

⭐️ License

MIT License

example/lib/main.dart

import 'package:flutter/material.dart';

import './showcase.dart';
import './workspace.dart';

void main() => runApp(new App());

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'SpinKit Demo',
      debugShowCheckedModeBanner: false,
      theme: new ThemeData(
        brightness: Brightness.dark,
      ),
      home: new Scaffold(
        body: SafeArea(
          child: Stack(
            children: <Widget>[
              Align(
                child: LayoutBuilder(
                  builder: (context, _) {
                    return IconButton(
                      icon: Icon(Icons.play_circle_filled),
                      iconSize: 50.0,
                      onPressed: () {
                        Navigator.push(
                          context,
                          MaterialPageRoute<void>(
                            builder: (BuildContext context) => ShowCase(),
                            fullscreenDialog: true,
                          ),
                        );
                      },
                    );
                  },
                ),
                alignment: Alignment.bottomCenter,
              ),
              Positioned.fill(
                child: Center(
                  child: WorkSpace(),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_spinkit: "^2.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:flutter_spinkit/flutter_spinkit.dart';
  
Version Uploaded Documentation Archive
2.0.0 Jul 19, 2018 Go to the documentation of flutter_spinkit 2.0.0 Download flutter_spinkit 2.0.0 archive
1.1.0 Jul 5, 2018 Go to the documentation of flutter_spinkit 1.1.0 Download flutter_spinkit 1.1.0 archive
1.0.0 Jul 5, 2018 Go to the documentation of flutter_spinkit 1.0.0 Download flutter_spinkit 1.0.0 archive
Awaiting analysis to complete.