-
Notifications
You must be signed in to change notification settings - Fork 73
/
flutter_spinkit.dart
97 lines (94 loc) · 3.16 KB
/
flutter_spinkit.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
class MySpinkit extends StatefulWidget {
const MySpinkit({Key? key}) : super(key: key);
@override
State<MySpinkit> createState() => _MySpinkitState();
}
class _MySpinkitState extends State<MySpinkit> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.deepPurple[100],
appBar: AppBar(title: const Text('Flutter Spinkit')),
body: const Column(
children: [
Padding(
padding: EdgeInsets.all(15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitRotatingCircle(color: Colors.redAccent),
SpinKitSpinningCircle(color: Colors.brown),
SpinKitHourGlass(color: Colors.black),
SpinKitChasingDots(color: Colors.cyanAccent),
],
),
),
Divider(thickness: 5),
Padding(
padding: EdgeInsets.all(15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitRotatingPlain(color: Colors.yellow),
SpinKitCubeGrid(color: Colors.teal),
SpinKitWave(color: Colors.pink),
],
),
),
Divider(thickness: 5),
Padding(
padding: EdgeInsets.all(15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitFadingCube(color: Colors.purple),
SpinKitFoldingCube(color: Colors.blue),
SpinKitFadingGrid(color: Colors.yellowAccent),
],
),
),
Divider(thickness: 5),
Padding(
padding: EdgeInsets.all(15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitDoubleBounce(color: Colors.pink),
SpinKitPulse(color: Colors.tealAccent),
SpinKitRipple(color: Colors.deepPurple),
],
),
),
Divider(thickness: 5),
Padding(
padding: EdgeInsets.all(15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitWanderingCubes(color: Colors.cyanAccent),
SpinKitFadingFour(color: Colors.red),
SpinKitThreeBounce(color: Colors.white),
],
),
),
Divider(thickness: 5),
Padding(
padding: EdgeInsets.all(12.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SpinKitCircle(color: Colors.brown),
SpinKitSpinningLines(color: Colors.red),
SpinKitRing(color: Colors.cyanAccent),
SpinKitDualRing(color: Colors.yellow),
],
),
),
Divider(thickness: 5),
],
),
);
}
}