🚧 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

@ -2,23 +2,23 @@ import 'package:flutter/material.dart';
class MyGridView {
Card getStructuredGridCell(name, image) {
return new Card(
return Card(
elevation: 1.5,
child: new Column(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.min,
verticalDirection: VerticalDirection.down,
children: <Widget>[
new Image(image: new AssetImage('data_repo/img/' + image)),
new Center(
child: new Text(name),
Image(image: AssetImage('data_repo/img/' + image)),
Center(
child: Text(name),
)
],
));
}
GridView build() {
return new GridView.count(
return GridView.count(
primary: true,
padding: const EdgeInsets.all(1.0),
crossAxisCount: 2,