mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-29 13:29:57 +08:00
24 lines
532 B
Dart
24 lines
532 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class Second 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.adb,
|
|
size: 160.0,
|
|
color: Colors.green,
|
|
),
|
|
new Text("Second Tab")
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|