mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-09-22 09:18:06 +08:00
🚧 remove new keyword to get inline with dart 2 code standard.
This commit is contained in:
@ -4,13 +4,13 @@ import 'package:navigation_drawer/screens/home.dart';
|
||||
import 'package:navigation_drawer/screens/settings.dart';
|
||||
|
||||
void main() {
|
||||
runApp(new MaterialApp(
|
||||
runApp(MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: new HomeScreen(), // route for home is '/' implicitly
|
||||
home: HomeScreen(), // route for home is '/' implicitly
|
||||
routes: <String, WidgetBuilder>{
|
||||
// define the routes
|
||||
SettingsScreen.routeName: (BuildContext context) => new SettingsScreen(),
|
||||
AccountScreen.routeName: (BuildContext context) => new AccountScreen(),
|
||||
SettingsScreen.routeName: (BuildContext context) => SettingsScreen(),
|
||||
AccountScreen.routeName: (BuildContext context) => AccountScreen(),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user