Skip to content

Commit 5ffd13a

Browse files
committed
Lightened up the milestone color in the timeline.
1 parent 4d88238 commit 5ffd13a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/constants.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ class Constants {
55
static final Color backgroundColor = const Color(0xFF000020);
66
static final Color timelineLineColor = Colors.white;
77
static final Color milestoneColor = new Color(0x40FFFFFF);
8+
static final Color milestoneTimelineColor = new Color(0x60FFFFFF);
89
}

lib/layered_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class LayeredChart extends StatefulWidget {
1515
double animationValue;
1616

1717
LayeredChart(this.dataToPlot, this.milestones, animationValue) {
18-
this.animationValue = 1;//animationValue;
18+
this.animationValue = animationValue;
1919
}
2020

2121
@override

lib/timeline.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class TimelinePainter extends CustomPainter {
4848
mainLinePaint.color = Constants.timelineLineColor;
4949
milestoneLinePaint = new Paint();
5050
milestoneLinePaint.style = PaintingStyle.stroke;
51-
milestoneLinePaint.color = Constants.milestoneColor;
51+
milestoneLinePaint.color = Constants.milestoneTimelineColor;
5252
}
5353

5454
@override
@@ -102,7 +102,7 @@ class TimelinePainter extends CustomPainter {
102102
double margin = (size.height - lineHeight) / 2;
103103
canvas.drawLine(new Offset(currX, margin), new Offset(currX, size.height - margin), milestoneLinePaint);
104104

105-
TextSpan span = new TextSpan(style: new TextStyle(color: Constants.milestoneColor, fontSize: 12), text: weekLabel.label);
105+
TextSpan span = new TextSpan(style: new TextStyle(color: Constants.milestoneTimelineColor, fontSize: 12), text: weekLabel.label);
106106
TextPainter tp = new TextPainter(text: span, textAlign: TextAlign.left, textDirection: TextDirection.ltr);
107107
tp.layout();
108108
tp.paint(canvas, new Offset(currX, size.height - labelHeightDoubled));

0 commit comments

Comments
 (0)