Skip to content

Commit 1342fe1

Browse files
committed
progress bar in process
1 parent f75adcd commit 1342fe1

2 files changed

Lines changed: 419 additions & 26 deletions

File tree

lib/components/progress_indicator/circular.dart

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class _CircularPercentIndicatorState extends State<CircularPercentIndicator>
177177
if (widget.header != null) {
178178
items.add(widget.header);
179179
}
180-
items.add(Container(
180+
items.add(
181+
Container(
181182
height: widget.radius + widget.lineWidth,
182183
width: widget.radius,
183184
child: CustomPaint(
@@ -279,19 +280,6 @@ class CirclePainter extends CustomPainter {
279280
_paintLine.maskFilter = maskFilter;
280281
}
281282
if (linearGradient != null) {
282-
/*
283-
_paintLine.shader = SweepGradient(
284-
center: FractionalOffset.center,
285-
startAngle: math.radians(-90.0 + startAngle),
286-
endAngle: math.radians(progress),
287-
//tileMode: TileMode.mirror,
288-
colors: linearGradient.colors)
289-
.createShader(
290-
Rect.fromCircle(
291-
center: center,
292-
radius: radius,
293-
),
294-
);*/
295283
_paintLine.shader = linearGradient.createShader(
296284
Rect.fromCircle(
297285
center: center,

0 commit comments

Comments
 (0)