🚧 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

@ -3,34 +3,34 @@ import 'package:flutter/material.dart';
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
return Scaffold(
// AppBar
appBar: new AppBar(
appBar: AppBar(
// Title
title: new Text("Home Page"),
title: Text("Home Page"),
// App Bar background color
backgroundColor: Colors.red,
),
// Body
body: new Container(
body: Container(
// Center the content
child: new Center(
child: new Column(
child: Center(
child: Column(
// Center content in the column
mainAxisAlignment: MainAxisAlignment.center,
// add children to the column
children: <Widget>[
// Text
new Text(
Text(
"Home Page\nClick on below icon to goto About Page",
// Setting the style for the Text
style: new TextStyle(fontSize: 20.0,),
style: TextStyle(fontSize: 20.0,),
// Set text alignment to center
textAlign: TextAlign.center,
),
// Icon Button
new IconButton(
icon: new Icon(
IconButton(
icon: Icon(
Icons.info,
color: Colors.blue,
),