Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "package:flutter/material.dart";
- void main() => runApp(ExercicioAula04());
- class ExercicioAula04 extends StatelessWidget
- {
- @override
- Widget build(BuildContext context)
- {
- return MaterialApp
- (
- home: DefaultTabController
- (
- length: 2,
- child: Scaffold
- (
- appBar: AppBar
- (
- title: Text("ExercicioAula04"),
- bottom: TabBar
- (
- tabs:
- [
- Tab(icon: Icon(Icons.image)),
- Tab(icon: Icon(Icons.list))
- ]
- )
- ),
- body: TabBarView
- (
- children:
- [
- Center
- (
- child: Image.network('https://unilavras.edu.br/new_site/wp-content/uploads/2018/11/Logo-Unilavras-Oficial_2019.png'),
- ),
- Center
- (
- child: GridView.count
- (
- crossAxisCount: 3,
- children: List.generate(100, (index)
- {
- return Center
- (
- child: Text
- (
- 'Item $index',
- style: Theme.of(context).textTheme.headline5,
- ),
- );
- })
- )
- ),
- ]
- )
- )
- )
- );
- }
- }
Add Comment
Please, Sign In to add comment