Skip to content

Commit 9a442f2

Browse files
author
Paritosh Vaidya
committed
Updated StepperWizard UI
1 parent 09d45a8 commit 9a442f2

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

lib/widgets/StepperWizard.dart

+18-24
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,29 @@ class StepperWizard extends StatelessWidget {
1414
child: Row(
1515
children: <Widget>[
1616
StepperStep(1, currentStep),
17-
CustomPaint(painter: HorizontalLine()),
17+
Expanded(
18+
child: Divider(
19+
thickness: 2,
20+
color: Colors.black,
21+
),
22+
),
1823
StepperStep(2, currentStep),
19-
CustomPaint(painter: HorizontalLine()),
24+
Expanded(
25+
child: Divider(
26+
thickness: 2,
27+
color: Colors.black,
28+
),
29+
),
2030
StepperStep(3, currentStep),
21-
CustomPaint(painter: HorizontalLine()),
31+
Expanded(
32+
child: Divider(
33+
thickness: 2,
34+
color: Colors.black,
35+
),
36+
),
2237
StepperStep(4, currentStep),
2338
],
2439
),
2540
);
2641
}
2742
}
28-
29-
class HorizontalLine extends CustomPainter {
30-
Paint _paint;
31-
32-
HorizontalLine() {
33-
_paint = Paint()
34-
..color = Colors.black
35-
..strokeWidth = 2
36-
..strokeCap = StrokeCap.round;
37-
}
38-
39-
@override
40-
void paint(Canvas canvas, Size size) {
41-
canvas.drawLine(Offset(-15.0, 0.0), Offset(30.0, 0.0), _paint);
42-
}
43-
44-
@override
45-
bool shouldRepaint(CustomPainter oldDelegate) {
46-
return false;
47-
}
48-
}

0 commit comments

Comments
 (0)