@@ -93,37 +93,34 @@ class ProgressBar extends Progress {
93
93
class _ProgressBarState extends ProgressState <ProgressBar > {
94
94
@override
95
95
Widget build (BuildContext context) {
96
- return SizedBox (
97
- width: 400 ,
98
- child: Column (
99
- children: [
100
- if (widget.label != null )
101
- SizedBox (
102
- child: Text (
103
- widget.label! ,
104
- textAlign: TextAlign .start,
105
- ),
96
+ return Column (
97
+ children: [
98
+ if (widget.label != null )
99
+ SizedBox (
100
+ child: Text (
101
+ widget.label! ,
102
+ textAlign: TextAlign .start,
106
103
),
107
- Row (crossAxisAlignment : CrossAxisAlignment .start, children : [
108
- Expanded (
109
- child : AnimatedContainer (
110
- duration : const Duration (milliseconds : 500 ),
111
- height : _weight ( ),
112
- child : LinearProgressIndicator (
113
- borderRadius : _border (),
114
- value : widget.type == BarType .indeterminate
115
- ? null
116
- : animation.value,
117
- backgroundColor : widget.type == BarType .buffering
118
- ? const Color . fromRGBO ( 224 , 227 , 233 , 1 )
119
- : Colors .transparent,
120
- ) ,
104
+ ),
105
+ Row (crossAxisAlignment : CrossAxisAlignment .start, children : [
106
+ Expanded (
107
+ child : AnimatedContainer (
108
+ duration : const Duration (milliseconds : 500 ),
109
+ height : _weight (),
110
+ child : LinearProgressIndicator (
111
+ borderRadius : _border (),
112
+ value : widget.type == BarType .indeterminate
113
+ ? null
114
+ : animation.value,
115
+ backgroundColor : widget.type == BarType .buffering
116
+ ? const Color . fromRGBO ( 224 , 227 , 233 , 1 )
117
+ : Colors .transparent ,
121
118
),
122
119
),
123
- _extraWidgets ( ),
124
- ])
125
- ],
126
- ) ,
120
+ ),
121
+ _extraWidgets (),
122
+ ])
123
+ ] ,
127
124
);
128
125
}
129
126
0 commit comments