mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2026-06-05 13:39:05 +00:00
🚧 remove new keyword to get inline with dart 2 code standard.
This commit is contained in:
@@ -5,13 +5,13 @@ class AccountScreen extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
appBar: new AppBar(
|
||||
title: new Text("Account"),
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Account"),
|
||||
),
|
||||
body: new Container(
|
||||
child: new Center(
|
||||
child: new Text("Account Screen"),
|
||||
body: Container(
|
||||
child: Center(
|
||||
child: Text("Account Screen"),
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user