@@ -28,11 +28,7 @@ class ProgressExampleState extends State<ProgressExample> {
28
28
SizedBox (
29
29
height: 20 ,
30
30
),
31
- Wrapper (
32
- stepsCompleted: 0 ,
33
- type: ZetaBarType .standard,
34
- isThin: false ,
35
- stateChangeable: true ),
31
+ Wrapper (stepsCompleted: 0 , type: ZetaBarType .standard, isThin: false , stateChangeable: true ),
36
32
SizedBox (
37
33
height: 20 ,
38
34
),
@@ -94,9 +90,7 @@ class _WrapperState extends State<Wrapper> {
94
90
95
91
void setLoading () {
96
92
setState (() {
97
- type = type == ZetaBarType .buffering
98
- ? ZetaBarType .standard
99
- : ZetaBarType .buffering;
93
+ type = type == ZetaBarType .buffering ? ZetaBarType .standard : ZetaBarType .buffering;
100
94
});
101
95
}
102
96
@@ -108,25 +102,17 @@ class _WrapperState extends State<Wrapper> {
108
102
SizedBox (
109
103
width: 400 ,
110
104
child: ZetaProgressBar (
111
- progress: progress,
112
- rounded: widget.rounded,
113
- type: type,
114
- isThin: widget.isThin,
115
- label: widget.label),
105
+ progress: progress, rounded: widget.rounded, type: type, isThin: widget.isThin, label: widget.label),
116
106
),
117
107
const SizedBox (width: 40 ),
118
108
Row (
119
109
mainAxisAlignment: MainAxisAlignment .center,
120
110
children: [
121
111
widget.type != ZetaBarType .indeterminate
122
- ? FilledButton (
123
- onPressed: increasePercentage, child: Text ("Increase" ))
112
+ ? FilledButton (onPressed: increasePercentage, child: Text ("Increase" ))
124
113
: Container (),
125
114
const SizedBox (width: 40 ),
126
- widget.stateChangeable
127
- ? FilledButton (
128
- onPressed: setLoading, child: Text ("Start Buffering" ))
129
- : Container ()
115
+ widget.stateChangeable ? FilledButton (onPressed: setLoading, child: Text ("Start Buffering" )) : Container ()
130
116
],
131
117
)
132
118
],
0 commit comments