🚧 remove new keyword to get inline with dart 2 code standard.

This commit is contained in:
Nishant Srivastava
2019-07-23 03:42:56 +02:00
parent e8b433c00d
commit 6d56bfc5d4
45 changed files with 438 additions and 438 deletions

View File

@ -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(),
},
));
}