mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-09 04:58:58 +00:00
refactored: using_tabs example
This commit is contained in:
23
using_tabs/lib/tabs/third.dart
Normal file
23
using_tabs/lib/tabs/third.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Third 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.airport_shuttle,
|
||||
size: 160.0,
|
||||
color: Colors.blue,
|
||||
),
|
||||
new Text("Third Tab")
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user