mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-11-08 20:50:04 +00:00
fix: issue #3
This commit is contained in:
@@ -5,7 +5,7 @@ import 'package:using_tabs/tabs/third.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(new MaterialApp(
|
runApp(new MaterialApp(
|
||||||
// Title
|
// Title
|
||||||
title: "Using Tabs",
|
title: "Using Tabs",
|
||||||
// Home
|
// Home
|
||||||
home: new MyHome()));
|
home: new MyHome()));
|
||||||
@@ -29,7 +29,7 @@ class MyHomeState extends State<MyHome> with SingleTickerProviderStateMixin {
|
|||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
// Initialize the Tab Controller
|
// Initialize the Tab Controller
|
||||||
controller = new TabController(length: 2, vsync: this);
|
controller = new TabController(length: 3, vsync: this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -73,9 +73,9 @@ class MyHomeState extends State<MyHome> with SingleTickerProviderStateMixin {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return new Scaffold(
|
return new Scaffold(
|
||||||
// Appbar
|
// Appbar
|
||||||
appBar: new AppBar(
|
appBar: new AppBar(
|
||||||
// Title
|
// Title
|
||||||
title: new Text("Using Tabs"),
|
title: new Text("Using Tabs"),
|
||||||
// Set the background color of the App Bar
|
// Set the background color of the App Bar
|
||||||
backgroundColor: Colors.blue,
|
backgroundColor: Colors.blue,
|
||||||
|
|||||||
Reference in New Issue
Block a user