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:
@@ -3,18 +3,18 @@ import 'package:flutter/material.dart';
|
||||
class First extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
child: new Center(
|
||||
child: new Column(
|
||||
return Container(
|
||||
child: Center(
|
||||
child: Column(
|
||||
// center the children
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Icon(
|
||||
Icon(
|
||||
Icons.favorite,
|
||||
size: 160.0,
|
||||
color: Colors.red,
|
||||
),
|
||||
new Text("First Tab")
|
||||
Text("First Tab")
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,18 +3,18 @@ import 'package:flutter/material.dart';
|
||||
class Second extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
child: new Center(
|
||||
child: new Column(
|
||||
return Container(
|
||||
child: Center(
|
||||
child: Column(
|
||||
// center the children
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Icon(
|
||||
Icon(
|
||||
Icons.adb,
|
||||
size: 160.0,
|
||||
color: Colors.green,
|
||||
),
|
||||
new Text("Second Tab")
|
||||
Text("Second Tab")
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,18 +3,18 @@ import 'package:flutter/material.dart';
|
||||
class Third extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
child: new Center(
|
||||
child: new Column(
|
||||
return Container(
|
||||
child: Center(
|
||||
child: Column(
|
||||
// center the children
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Icon(
|
||||
Icon(
|
||||
Icons.airport_shuttle,
|
||||
size: 160.0,
|
||||
color: Colors.blue,
|
||||
),
|
||||
new Text("Third Tab")
|
||||
Text("Third Tab")
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user