mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 20:50:04 +00:00
🚧 remove new keyword to get inline with dart 2 code standard.
This commit is contained in:
@@ -13,22 +13,22 @@ class User extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
appBar: new AppBar(
|
||||
title: new Text("Welcome"),
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Welcome"),
|
||||
actions: <Widget>[
|
||||
new IconButton(
|
||||
icon: new Icon(Icons.exit_to_app), onPressed: this.onLogout)
|
||||
IconButton(
|
||||
icon: Icon(Icons.exit_to_app), onPressed: this.onLogout)
|
||||
],
|
||||
),
|
||||
body: new Container(
|
||||
body: Container(
|
||||
padding: const EdgeInsets.all(20.0),
|
||||
child: new Center(
|
||||
child: new Column(
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Image.network(user.photoUrl),
|
||||
new Text(
|
||||
Image.network(user.photoUrl),
|
||||
Text(
|
||||
user.displayName,
|
||||
textScaleFactor: 1.5,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user