Unnecessary new (#20138)

* enable lint unnecessary_new

* fix tests

* fix tests

* fix tests
This commit is contained in:
Alexandre Ardhuin
2018-09-12 08:29:29 +02:00
committed by GitHub
parent d7a0dcaa4a
commit d927c93310
1285 changed files with 26519 additions and 26519 deletions

View File

@@ -9,9 +9,9 @@ import '../widgets/gestures.dart';
void main() {
testWidgets('Tap on center change color', (WidgetTester tester) async {
await tester.pumpWidget(new Directionality(
await tester.pumpWidget(Directionality(
textDirection: TextDirection.ltr,
child: new GestureDemo(),
child: GestureDemo(),
));
final Finder finder = find.byType(GestureDemo);

View File

@@ -13,6 +13,6 @@ void main() {
});
testWidgets('Sector Sixes', (WidgetTester tester) async {
await tester.pumpWidget(new SectorApp());
await tester.pumpWidget(SectorApp());
});
}