@@ -30,18 +30,27 @@ class MyHomePage extends StatefulWidget {
3030}
3131
3232class _MyHomePageState extends State <MyHomePage > {
33-
34-
3533 @override
3634 Widget build (BuildContext context) {
37- Color _color = Theme .of (context).primaryColor;
35+ Color _color = Theme .of (context).primaryColor;
3836 Duration _duration = Duration (seconds: 10 );
3937 Curve _curve = Curves .bounceIn;
4038
41- BallStyle _ballStyle= BallStyle (
39+ BallStyle _ballStyle = BallStyle (
4240 color: _color,
4341 );
44-
42+ return Scaffold (
43+ appBar: AppBar (),
44+ body: Center (
45+ child: Container (
46+ width: 40 ,
47+ height: 50 ,
48+ child: PouringHourGlassLoading (
49+ color: Colors .blue,
50+ ),
51+ ),
52+ ),
53+ );
4554 return Scaffold (
4655 appBar: AppBar (
4756 title: Text (widget.title),
@@ -52,56 +61,64 @@ class _MyHomePageState extends State<MyHomePage> {
5261 crossAxisCount: 4 ,
5362 ),
5463 children: [
55- _item (BallPulseLoading (ballStyle: _ballStyle,)),
56- _item (Ball4ScaleLoading (ballStyle: _ballStyle,)),
57- _item (BallGridPulseLoading (ballStyle: _ballStyle,)),
58- _item (BallCirclePulseLoading (ballStyle: _ballStyle,)),
59- _item (Ball3OpacityLoading (ballStyle: _ballStyle,)),
60- _item (Ball4OpacityLoading (ballStyle: _ballStyle,)),
61- _item (BallGridOpacityLoading (ballStyle: _ballStyle,)),
62- _item (BallCircleRotateLoading (ballStyle: _ballStyle,)),
63- _item (BallBounceLoading (ballStyle: _ballStyle,)),
64- _item (BallRotateScaleLoading (ballStyle: _ballStyle,)),
65- _item (Ball2TrianglePathLoading (ballStyle: _ballStyle,), width: 40 , height: 40 ),
66- _item (BallCircleOpacityLoading (ballStyle: _ballStyle,), width: 40 , height: 40 ),
67- _item (Ball3TrianglePathLoading (ballStyle: _ballStyle,)),
68- _item (BallInsideBallLoading (ballStyle: _ballStyle,backgroundColor: _color.withOpacity (0.3 ),), width: 40 , height: 40 ),
69- _item (BallClipRotatePulseLoading (ballStyle: _ballStyle,ringColor: _color,), width: 40 , height: 40 ),
70-
71- _item (BallCircleInsideRotateLoading (ballStyle: _ballStyle,), width: 40 , height: 40 ),
72-
73- _item (RingRotate (color: _color,), width: 40 , height: 40 ),
74- _item (Ring2InsideLoading (color: _color,), width: 40 , height: 40 ),
75- _item (Ring2SymmetryLoading (color: _color,), width: 40 , height: 40 ),
76- _item (RingBallRotateLoading (ballColor: _color,circleColor: _color.withOpacity (0.3 ),), width: 40 , height: 40 ),
77- _item (RingClipRotateMultiple (innerColor: _color,outerColor: _color,), width: 40 , height: 40 ),
78- _item (WaterCircleLoading (color: _color,)),
79- _item (Water2CircleLoading (color: _color,)),
80- _item (WaterRipple (color: _color,)),
81- _item (WaterMultipleCircleLoading (color: _color,)),
82- _item (WaterPulseLoading (color: _color,)),
83- _item (BarPulseLoading (color: _color,), width: 40 , height: 40 ),
84- _item (BarScaleLoading (color: _color,), width: 40 , height: 40 ),
85- _item (BarScale1Loading (color: _color,), width: 40 , height: 40 ),
86- _item (BarScalePulseOutLoading (color: _color,), width: 40 , height: 40 ),
87- _item (BarMusicLoading (color: _color,), width: 26 , height: 40 ),
88- // _item(Square4RotateLoading(color: _color,)),
89- _item (Square4OpacityLoading (color: _color,), width: 40 , height: 40 ),
90- _item (SquareFadingLoading (color: _color,), width: 40 , height: 40 ),
91- _item (SquareRotateLoading (color: _color,), width: 40 , height: 40 ),
92- _item (SquareGridScaleLoading (color: _color,)),
93- _item (CircleRotateLoading (color: _color,), width: 40 , height: 40 ),
94- _item (CirclePulseLoading (color: _color,), width: 40 , height: 40 ),
64+ // _item(BallPulseLoading(ballStyle: _ballStyle,)),
65+ // _item(Ball4ScaleLoading(ballStyle: _ballStyle,)),
66+ // _item(BallGridPulseLoading(ballStyle: _ballStyle,)),
67+ // _item(BallCirclePulseLoading(ballStyle: _ballStyle,)),
68+ // _item(Ball3OpacityLoading(ballStyle: _ballStyle,)),
69+ // _item(Ball4OpacityLoading(ballStyle: _ballStyle,)),
70+ // _item(BallGridOpacityLoading(ballStyle: _ballStyle,)),
71+ // _item(BallCircleRotateLoading(ballStyle: _ballStyle,)),
72+ // _item(BallBounceLoading(ballStyle: _ballStyle,)),
73+ // _item(BallRotateScaleLoading(ballStyle: _ballStyle,)),
74+ // _item(Ball2TrianglePathLoading(ballStyle: _ballStyle,), width: 40, height: 40),
75+ //
9576 _item (
96- CircleSquareLoading (
97- size : 30 ,
98- color: _color ,
77+ BallCircleOpacityLoading (
78+ ballStyle : BallStyle (
79+ size : 5 , color: Colors .red, ballType : BallType .solid) ,
9980 ),
100- width: 30 ,
101- height: 30 ),
102- _item (Circle2InsideScaleLoading (smallCircleColor: _color,), width: 40 , height: 40 ),
103- _item (PouringHourGlassLoading (color: _color,), width: 30 , height: 40 ),
104- _item (PacmanLoading (mouthColor: _color,ballColor: _color,), width: 80 , height: 40 ),
81+ width: 40 ,
82+ height: 40 ),
83+
84+ // _item(Ball3TrianglePathLoading(ballStyle: _ballStyle,)),
85+ // _item(BallInsideBallLoading(ballStyle: _ballStyle,backgroundColor: _color.withOpacity(0.3),), width: 40, height: 40),
86+ // _item(BallClipRotatePulseLoading(ballStyle: _ballStyle,ringColor: _color,), width: 40, height: 40),
87+ //
88+ // _item(BallCircleInsideRotateLoading(ballStyle: _ballStyle,), width: 40, height: 40),
89+ //
90+ // _item(RingRotate(color: _color,), width: 40, height: 40),
91+ // _item(Ring2InsideLoading(color: _color,), width: 40, height: 40),
92+ // _item(Ring2SymmetryLoading(color: _color,), width: 40, height: 40),
93+ // _item(RingBallRotateLoading(ballColor: _color,circleColor: _color.withOpacity(0.3),), width: 40, height: 40),
94+ // _item(RingClipRotateMultiple(innerColor: _color,outerColor: _color,), width: 40, height: 40),
95+ // _item(WaterCircleLoading(color: _color,)),
96+ // _item(Water2CircleLoading(color: _color,)),
97+ // _item(WaterRipple(color: _color,)),
98+ // _item(WaterMultipleCircleLoading(color: _color,)),
99+ // _item(WaterPulseLoading(color: _color,)),
100+ // _item(BarPulseLoading(color: _color,), width: 40, height: 40),
101+ // _item(BarScaleLoading(color: _color,), width: 40, height: 40),
102+ // _item(BarScale1Loading(color: _color,), width: 40, height: 40),
103+ // _item(BarScalePulseOutLoading(color: _color,), width: 40, height: 40),
104+ // _item(BarMusicLoading(color: _color,), width: 26, height: 40),
105+ // // _item(Square4RotateLoading(color: _color,)),
106+ // _item(Square4OpacityLoading(color: _color,), width: 40, height: 40),
107+ // _item(SquareFadingLoading(color: _color,), width: 40, height: 40),
108+ // _item(SquareRotateLoading(color: _color,), width: 40, height: 40),
109+ // _item(SquareGridScaleLoading(color: _color,)),
110+ // _item(CircleRotateLoading(color: _color,), width: 40, height: 40),
111+ // _item(CirclePulseLoading(color: _color,), width: 40, height: 40),
112+ // _item(
113+ // CircleSquareLoading(
114+ // size: 30,
115+ // color: _color,
116+ // ),
117+ // width: 30,
118+ // height: 30),
119+ // _item(Circle2InsideScaleLoading(smallCircleColor: _color,), width: 40, height: 40),
120+ // _item(PouringHourGlassLoading(color: _color,), width: 30, height: 40),
121+ // _item(PacmanLoading(mouthColor: _color,ballColor: _color,), width: 80, height: 40),
105122 ],
106123 ),
107124 );
0 commit comments