mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-29 05:22:46 +08:00
24 lines
533 B
Dart
24 lines
533 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class First extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new Container(
|
|
child: new Center(
|
|
child: new Column(
|
|
// center the children
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
new Icon(
|
|
Icons.favorite,
|
|
size: 160.0,
|
|
color: Colors.red,
|
|
),
|
|
new Text("First Tab")
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|