mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 12:39:17 +00:00
🚧 remove new keyword to get inline with dart 2 code standard.
This commit is contained in:
@@ -3,22 +3,22 @@ import 'package:flutter/material.dart';
|
||||
class ThirdTab extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.orange,
|
||||
body: new Container(
|
||||
child: new Center(
|
||||
child: new Column(
|
||||
body: Container(
|
||||
child: Center(
|
||||
child: Column(
|
||||
// center the children
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
new Icon(
|
||||
Icon(
|
||||
Icons.airport_shuttle,
|
||||
size: 160.0,
|
||||
color: Colors.white,
|
||||
),
|
||||
new Text(
|
||||
Text(
|
||||
"Third Tab",
|
||||
style: new TextStyle(color: Colors.white),
|
||||
style: TextStyle(color: Colors.white),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user