mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-09 13:09:03 +00:00
🚧 remove new keyword to get inline with dart 2 code standard.
This commit is contained in:
@@ -3,12 +3,12 @@ import 'package:handling_routes/screens/about.dart';
|
||||
import 'package:handling_routes/screens/home.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(
|
||||
home: new HomePage(), // home has implicit route set at '/'
|
||||
runApp(MaterialApp(
|
||||
home: HomePage(), // home has implicit route set at '/'
|
||||
// Setup routes
|
||||
routes: <String, WidgetBuilder>{
|
||||
// Set named routes
|
||||
AboutPage.routeName: (BuildContext context) => new AboutPage(),
|
||||
AboutPage.routeName: (BuildContext context) => AboutPage(),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user