Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "package:flutter/material.dart";
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home : DefaultTabController(
- length : 3,
- child : Scaffold(
- appBar : AppBar(title : Text("Exemplo - TabBar"),
- bottom : TabBar(
- tabs : [
- Tab(icon : Icon(Icons.announcement)),
- Tab(icon : Icon(Icons.cake)),
- Tab(icon : Icon(Icons.cloud))
- ]
- )
- ),
- body : TabBarView(
- children : [
- Center(child : Text("Avisos")),
- Center(child : Text("Aniversários")),
- Center(child : Text("Dados"))
- ]
- )
- )
- )
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement