Trivial style nits (#8042)

This commit is contained in:
Ian Hickson 2017-02-09 15:31:21 -08:00 committed by GitHub
parent 00cbdb3800
commit 473b67ef19

View File

@ -42,7 +42,7 @@ Widget buildTest({ double startToEndThreshold }) {
width: itemExtent,
height: itemExtent,
child: new Text(item.toString())
)
),
);
}
@ -53,7 +53,7 @@ Widget buildTest({ double startToEndThreshold }) {
itemExtent: itemExtent,
children: <int>[0, 1, 2, 3, 4]
.where((int i) => !dismissedItems.contains(i))
.map(buildDismissableItem)
.map(buildDismissableItem),
)
);
}
@ -124,8 +124,8 @@ class Test1215DismissableWidget extends StatelessWidget {
key: new ObjectKey(text),
child: new AspectRatio(
aspectRatio: 1.0,
child: new Text(this.text)
)
child: new Text(this.text),
),
);
}
}
@ -293,10 +293,10 @@ void main() {
child: new Column(
children: <Widget>[
new Test1215DismissableWidget('1'),
new Test1215DismissableWidget('2')
]
)
)
new Test1215DismissableWidget('2'),
],
),
),
));
expect(find.text('1'), findsOneWidget);
expect(find.text('2'), findsOneWidget);