1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 14:28:51 +00:00

Fix web/_tool/verify_packages

Fix lints in a number of samples
This commit is contained in:
Kevin Moore
2019-09-12 16:31:54 -07:00
committed by John Ryan
parent f9d973e7ba
commit 7a63156650
8 changed files with 51 additions and 31 deletions

View File

@@ -39,7 +39,7 @@ class TimelineState extends State<Timeline> {
void initState() {
super.initState();
for (int year = 2015; year < 2020; year++) {
String yearLabel = "${year}";
String yearLabel = "$year";
labelPainters[yearLabel] =
_makeTextPainter(Constants.timelineLineColor, yearLabel);
}
@@ -174,7 +174,7 @@ class TimelinePainter extends CustomPainter {
}
if (isYear) {
var yearLabel = "${yearNumber}";
var yearLabel = "$yearNumber";
state.labelPainters[yearLabel]
.paint(canvas, Offset(currX, size.height - labelHeight));
yearNumber++;