criada a tela_eventos.dart
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:rkm_educa_app/Telas/tela_situacao_escolar.dart';
|
|||||||
import 'package:rkm_educa_app/modelos/estudante_modelo.dart';
|
import 'package:rkm_educa_app/modelos/estudante_modelo.dart';
|
||||||
import 'package:rkm_educa_app/telas/tela_botetim.dart';
|
import 'package:rkm_educa_app/telas/tela_botetim.dart';
|
||||||
import 'package:rkm_educa_app/telas/tela_contatos.dart';
|
import 'package:rkm_educa_app/telas/tela_contatos.dart';
|
||||||
|
import 'package:rkm_educa_app/telas/tela_eventos.dart';
|
||||||
import 'package:rkm_educa_app/telas/tela_historico.dart';
|
import 'package:rkm_educa_app/telas/tela_historico.dart';
|
||||||
import 'package:rkm_educa_app/telas/tela_login.dart';
|
import 'package:rkm_educa_app/telas/tela_login.dart';
|
||||||
import 'package:rkm_educa_app/telas/tela_perfil.dart';
|
import 'package:rkm_educa_app/telas/tela_perfil.dart';
|
||||||
@@ -87,7 +88,7 @@ class DrawerCustom extends StatelessWidget {
|
|||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
icone: LineIcons.calendarTimes,
|
icone: LineIcons.calendarTimes,
|
||||||
texto: 'Eventos Escolares',
|
texto: 'Eventos Escolares',
|
||||||
onPressed: (){},
|
onPressed: ()=>Navigator.push(context, MaterialPageRoute(builder: (context)=>TelaEventos(estudanteModelo: estudanteModelo))),
|
||||||
),
|
),
|
||||||
Container(height: 1,color: PaletaCores.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
Container(height: 1,color: PaletaCores.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
|
|||||||
70
lib/componentes/item_evento.dart
Normal file
70
lib/componentes/item_evento.dart
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:rkm_educa_app/componentes/text_custom.dart';
|
||||||
|
import 'package:rkm_educa_app/utils/dimensoes.dart';
|
||||||
|
import '../utils/cores.dart';
|
||||||
|
|
||||||
|
class ItemEvento extends StatelessWidget {
|
||||||
|
|
||||||
|
String data;
|
||||||
|
String titulo;
|
||||||
|
String local;
|
||||||
|
|
||||||
|
ItemEvento({
|
||||||
|
required this.data,
|
||||||
|
required this.titulo,
|
||||||
|
required this.local
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
|
||||||
|
return Container(
|
||||||
|
color: PaletaCores.branco,
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 20.0,vertical: 5),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: Dimensoes.width*0.8,
|
||||||
|
height: 85,
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 2),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
TextCustom(text: 'Data',size: 14.0,fontWeight: FontWeight.bold),
|
||||||
|
SizedBox(width: 10,),
|
||||||
|
TextCustom(text: data,size: 14.0,fontWeight: FontWeight.normal,color: PaletaCores.cinzaClaro,),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 2),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
TextCustom(text: 'Título',size: 14.0,fontWeight: FontWeight.bold),
|
||||||
|
SizedBox(width: 10,),
|
||||||
|
TextCustom(text: titulo),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 2),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
TextCustom(text: 'Local',size: 14.0,fontWeight: FontWeight.bold),
|
||||||
|
SizedBox(width: 10,),
|
||||||
|
TextCustom(text: local),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(width: double.infinity,height: 2,color: PaletaCores.divider,)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
41
lib/telas/tela_eventos.dart
Normal file
41
lib/telas/tela_eventos.dart
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:rkm_educa_app/componentes/appbar_custom.dart';
|
||||||
|
import 'package:rkm_educa_app/componentes/drawer_custom.dart';
|
||||||
|
import 'package:rkm_educa_app/componentes/item_evento.dart';
|
||||||
|
import 'package:rkm_educa_app/modelos/estudante_modelo.dart';
|
||||||
|
|
||||||
|
import '../utils/dimensoes.dart';
|
||||||
|
|
||||||
|
class TelaEventos extends StatefulWidget {
|
||||||
|
EstudanteModelo estudanteModelo;
|
||||||
|
|
||||||
|
TelaEventos({
|
||||||
|
required this.estudanteModelo
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<TelaEventos> createState() => _TelaEventosState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _TelaEventosState extends State<TelaEventos> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBarCustom().appbar(context, 'EVENTOS ESCOLARES'),
|
||||||
|
drawer: DrawerCustom(estudanteModelo: widget.estudanteModelo),
|
||||||
|
body: Container(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 20,horizontal: 10),
|
||||||
|
width: Dimensoes.width,
|
||||||
|
height: Dimensoes.height,
|
||||||
|
child: ListView(
|
||||||
|
children: [
|
||||||
|
ItemEvento(data: '10/05/2023', titulo: 'Viagem para o Museu', local: 'São Paulo'),
|
||||||
|
ItemEvento(data: '10/05/2023', titulo: 'Viagem para o Museu', local: 'São Paulo'),
|
||||||
|
ItemEvento(data: '10/05/2023', titulo: 'Viagem para o Museu', local: 'São Paulo'),
|
||||||
|
ItemEvento(data: '10/05/2023', titulo: 'Viagem para o Museu', local: 'São Paulo'),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user