51 lines
1.6 KiB
Dart
51 lines
1.6 KiB
Dart
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 '../controllers/main_controllers.dart';
|
|
import '../utils/dimensoes.dart';
|
|
|
|
class TelaEventos extends StatefulWidget {
|
|
List <EstudanteModelo> alunos;
|
|
int indiceAluno;
|
|
|
|
TelaEventos({
|
|
required this.alunos,
|
|
required this.indiceAluno
|
|
});
|
|
|
|
@override
|
|
State<TelaEventos> createState() => _TelaEventosState();
|
|
}
|
|
|
|
class _TelaEventosState extends State<TelaEventos> {
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
MainControllers().salvarLog(widget.alunos[widget.indiceAluno], 'EVENTOS');
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBarCustom().appbar(context, 'EVENTOS ESCOLARES'),
|
|
drawer: DrawerCustom(alunos: widget.alunos,indiceFilhos: widget.indiceAluno),
|
|
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'),
|
|
],
|
|
),
|
|
)
|
|
);
|
|
}
|
|
}
|