Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove new keyword in basic_project.dart
  • Loading branch information
nilsreichardt committed May 23, 2022
commit 6f75ada33809f28c5e0920d4601aa72ad898f840
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BasicProject extends Project {

Future<void> main() async {
while (true) {
runApp(new MyApp());
runApp(MyApp());
await Future.delayed(const Duration(milliseconds: 50));
}
}
Expand All @@ -34,9 +34,9 @@ class BasicProject extends Project {
@override
Widget build(BuildContext context) {
topLevelFunction();
return new MaterialApp( // BUILD BREAKPOINT
return MaterialApp( // BUILD BREAKPOINT
title: 'Flutter Demo',
home: new Container(),
home: Container(),
);
}
}
Expand Down Expand Up @@ -136,7 +136,7 @@ class BasicProjectWithTimelineTraces extends Project {

Future<void> main() async {
while (true) {
runApp(new MyApp());
runApp(MyApp());
await Future.delayed(const Duration(milliseconds: 50));
Timeline.instantSync('main');
}
Expand All @@ -146,9 +146,9 @@ class BasicProjectWithTimelineTraces extends Project {
@override
Widget build(BuildContext context) {
topLevelFunction();
return new MaterialApp( // BUILD BREAKPOINT
return MaterialApp( // BUILD BREAKPOINT
title: 'Flutter Demo',
home: new Container(),
home: Container(),
);
}
}
Expand Down Expand Up @@ -208,17 +208,17 @@ class BasicProjectWithUnaryMain extends Project {
import 'package:flutter/material.dart';
Future<void> main(List<String> args) async {
while (true) {
runApp(new MyApp());
runApp(MyApp());
await Future.delayed(const Duration(milliseconds: 50));
}
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
topLevelFunction();
return new MaterialApp( // BUILD BREAKPOINT
return MaterialApp( // BUILD BREAKPOINT
title: 'Flutter Demo',
home: new Container(),
home: Container(),
);
}
}
Expand Down