Unnecessary new (#20138)
* enable lint unnecessary_new * fix tests * fix tests * fix tests
This commit is contained in:
committed by
GitHub
parent
d7a0dcaa4a
commit
d927c93310
@@ -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);
|
||||
|
||||
|
||||
@@ -13,6 +13,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('Sector Sixes', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(new SectorApp());
|
||||
await tester.pumpWidget(SectorApp());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user