Escolar Documentos
Profissional Documentos
Cultura Documentos
Estruturando o programa
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: Galeria(),
));
}
@override
_GaleriaState createState() => _GaleriaState();
}
pág. 1
APLICATIVO GALERIA DE ARTE
@override
void initState() {
super.initState();
_controller = AnimationController(vsync: this);
}
@override
void dispose() {
super.dispose();
_controller.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
//Cabeçalho
appBar: AppBar(
title: Text(
'Galeria de Arte',
style: TextStyle(color: Colors.white, fontSize: 30.0),
),
centerTitle: true,
backgroundColor: Colors.blue[400],
),
backgroundColor: Colors.black,
//Fim do Cabeçalho
//Inicio do corpo
body: Padding(
padding: EdgeInsets.all(10.0),
) //Fim do Padding
);
}
}
pág. 2
APLICATIVO GALERIA DE ARTE
CrossAxisCount
MainAxisSpacing
CrossAxisSpacing
// Criacao de GridView
child: GridView(
//Disposicao dos Grieds ou Widgets
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 4,
mainAxisSpacing: 5,
crossAxisSpacing: 5,
mainAxisExtent: 230),
Criação de Container
Onde será armazenado o conteúdo da cada Gride criado e com possibilidade de modifcar os
atributos
Neste é onde vamos mostrar como os widgets serão dipostos que conteúdo terão.
children: <Widget>[
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
pág. 3
APLICATIVO GALERIA DE ARTE
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: Galeria(),
));
}
@override
_GaleriaState createState() => _GaleriaState();
}
pág. 4
APLICATIVO GALERIA DE ARTE
@override
void initState() {
super.initState();
_controller = AnimationController(vsync: this);
}
@override
void dispose() {
super.dispose();
_controller.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
//Cabeçalho
appBar: AppBar(
title: Text(
'Galeria de Arte',
style: TextStyle(color: Colors.white, fontSize: 30.0),
),
centerTitle: true,
backgroundColor: Colors.blue[400],
),
backgroundColor: Colors.black,
//Fim do Cabeçalho
//Inicio do corpo
body: Padding(
padding: EdgeInsets.all(10.0),
child: GridView(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 4,
mainAxisSpacing: 5,
crossAxisSpacing: 5,
mainAxisExtent: 230),
children: <Widget>[
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
pág. 5
APLICATIVO GALERIA DE ARTE
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcR8AGh0pnvaF8Slmxsr-
OuFIxE2_f8gdPRSSg&usqp=CAU',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte; Um olhar da cultura",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: O inicio da mudança",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
pág. 6
APLICATIVO GALERIA DE ARTE
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTbbRjzYDx17tovaq-
wHiYUqwDuDZnBt4mcYQ&usqp=CAU',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte; A arte é a Vida",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQMlCjFi54oVb9PLPpFKZOq2R_xwx65n1a9ow&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Cultura da mulher como arte",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
pág. 7
APLICATIVO GALERIA DE ARTE
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQEhkw04ebqndNBg8HGAgs6A1TNkMRZedeSNw&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Verdade de uma Nação",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQSF4IF7DcU-
yuTG8mSrREzNtSbXlHmCWTEBQ&usqp=CAU',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Malangatana",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
pág. 8
APLICATIVO GALERIA DE ARTE
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTrFY1V3lcI0Mnsynj7Kltf8ttxRXhVW-
QZbg&usqp=CAU',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: O universo unido por Amor",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: O sofrimento da mãe Africa",
pág. 9
APLICATIVO GALERIA DE ARTE
pág. 10
APLICATIVO GALERIA DE ARTE
),
Text(
"Arte: O rosto do assombrado",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcTatuIHuqFRpsqHHv7f690AHHab7SHOyx7OEQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arrte: O Mundo dos intelectuais",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcQlczVHNjLcOlFb0_5YDnA51CJw1fWfw790_Q&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
pág. 11
APLICATIVO GALERIA DE ARTE
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Povo Makonde",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: A arte africana",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRWso4Hin00WNHBKHiBt7JmBszK4AiDmWsNKg&usqp=CAU
',
pág. 12
APLICATIVO GALERIA DE ARTE
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Artesão de mulheres",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Mozlife",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
pág. 13
APLICATIVO GALERIA DE ARTE
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Ombro Amigo",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcRWso4Hin00WNHBKHiBt7JmBszK4AiDmWsNKg&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Artesão de mulheres",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
pág. 14
APLICATIVO GALERIA DE ARTE
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Mozlife",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcT5NQ1SxJZU6Ov2SAu9f49MG84IrvixmH9DQQ&usqp=CAU
',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte: Ombro Amigo",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
pág. 15
APLICATIVO GALERIA DE ARTE
Container(
color: Colors.white,
child: Center(
child: Column(
children: <Widget>[
Image.network(
'https://encrypted-
tbn0.gstatic.com/images?q=tbn:ANd9GcR8AGh0pnvaF8Slmxsr-
OuFIxE2_f8gdPRSSg&usqp=CAU',
height: 200,
width: 350,
fit: BoxFit.cover,
),
SizedBox(
height: 5.0,
),
Text(
"Arte; Um olhar da cultura",
style: TextStyle(fontSize: 20.0, color: Colors.black),
),
],
),
),
),
],
) //Fim da GrideView
) //Fim do Padding
);
}
}
pág. 16