58 lines
2.4 KiB
Dart
58 lines
2.4 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/modelos/estudante_modelo.dart';
|
|
import '../componentes/item_modelo.dart';
|
|
import '../controllers/main_controllers.dart';
|
|
|
|
class TelaContatos extends StatefulWidget {
|
|
List <EstudanteModelo> alunos;
|
|
int indiceAluno;
|
|
|
|
TelaContatos({
|
|
required this.alunos,
|
|
required this.indiceAluno
|
|
});
|
|
|
|
@override
|
|
State<TelaContatos> createState() => _TelaContatosState();
|
|
}
|
|
|
|
class _TelaContatosState extends State<TelaContatos> {
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
MainControllers().salvarLog(widget.alunos[widget.indiceAluno], 'CONTATOS');
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBarCustom().appbar(context, 'CONTATOS'),
|
|
drawer: DrawerCustom(alunos: widget.alunos,indiceFilhos: widget.indiceAluno),
|
|
body: Padding(
|
|
padding: EdgeInsets.all(30),
|
|
child: ListView(
|
|
children: [
|
|
widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_DIRETOR']==''
|
|
?Container()
|
|
:ItemModelo(texto: widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_DIRETOR'], titulo: 'Diretor(a)',widthCustom: 0.65),
|
|
widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_VICE_DIRETOR']==''?Container()
|
|
:ItemModelo(texto: widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_VICE_DIRETOR'], titulo: 'Vice - Diretor(a)',widthCustom: 0.6),
|
|
widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_COORDENADOR']==''
|
|
?Container()
|
|
:ItemModelo(texto: widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['TX_COORDENADOR'], titulo: 'Coordenador(a)',widthCustom: 0.55),
|
|
widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['NO_EMAIL']==''
|
|
?Container()
|
|
:ItemModelo(texto: widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['NO_EMAIL'], titulo: 'E - mail',widthCustom: 0.6),
|
|
widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['NO_SITE']==''
|
|
?Container()
|
|
:ItemModelo(texto: widget.alunos[widget.indiceAluno].dados[widget.indiceAluno]['NO_SITE'], titulo: 'Site',widthCustom: 0.6,),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|