mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-06-11 08:51:56 +08:00
30 lines
735 B
Dart
30 lines
735 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class Third extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new Scaffold(
|
|
backgroundColor: Colors.orange,
|
|
body: new Container(
|
|
child: new Center(
|
|
child: new Column(
|
|
// center the children
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
new Icon(
|
|
Icons.airport_shuttle,
|
|
size: 160.0,
|
|
color: Colors.white,
|
|
),
|
|
new Text(
|
|
"Third Tab",
|
|
style: new TextStyle(color: Colors.white),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|