ajustes dos dados classe, turma, e check dos dados
This commit is contained in:
@@ -59,11 +59,11 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
mes = data.substring(4,6);
|
||||
ano = data.substring(0,4);
|
||||
}
|
||||
alunos.add(AlunoModel(nome: list[i]['NO_ALUNO']??'', data_nasc: '${dia}/${mes}/${ano}', ra: list[i]['NR_RA']??'', escola: 'escola', serie: 'serie', turma: 'turma',dados: list[i]));
|
||||
alunos.add(AlunoModel(nome: list[i]['NO_ALUNO']??'', data_nasc: '${dia}/${mes}/${ano}', ra: list[i]['NR_RA']??'', escola: '', serie: list[i]['DESC_SERIE'], turma: list[i]['TURMA'],dados: list[i]));
|
||||
resultadoPesquisa.add(alunos[i]);
|
||||
}
|
||||
}else{
|
||||
showSnackBar(context, 'Aluno(a) não localizado', Colors.red);
|
||||
showSnackBar(context, 'Aluno(a) não matriculado em ${DateTime.now().year}', Colors.red);
|
||||
}
|
||||
setState(() {
|
||||
buscandoDados = false;
|
||||
@@ -155,7 +155,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
controller: inputPesquisa,
|
||||
width: width*0.25,
|
||||
inputFormatters: [],
|
||||
fontSize: 12,
|
||||
fontSize: 14,
|
||||
colorBackground: Colors.white,
|
||||
),
|
||||
ButtonCustom(
|
||||
|
||||
@@ -21,8 +21,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
//AMENEZES LOGIN DIFERENTE DA SENHA
|
||||
//SENHAS CRIPTOGRAFADAS PORQUE FORMA ALTERADAS, SENHAS NOVAS USUÁRIO E SENHA SÃO IGUAIS
|
||||
// final inputLogin = TextEditingController(text: 'mmatos');
|
||||
final inputLogin = TextEditingController(text: 'admin');
|
||||
final inputSenha = TextEditingController(text: 'rkm12345');
|
||||
final inputLogin = TextEditingController(text: 'ibueno');
|
||||
final inputSenha = TextEditingController(text: 'ibueno');
|
||||
// final inputSenha = TextEditingController(text: 'mmatos');
|
||||
bool loading = false;
|
||||
|
||||
|
||||
@@ -208,9 +208,9 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
||||
carregando = true;
|
||||
});
|
||||
final url = 'http://localhost:8000/deleta?CPF=$cpf';
|
||||
print(url);
|
||||
// print(url);
|
||||
final response = await http.get(Uri.parse(url));
|
||||
print(response.body);
|
||||
// print(response.body);
|
||||
if(response.body == 'deletado com sucesso'){
|
||||
responsaveis.removeAt(index);
|
||||
carregando = false;
|
||||
|
||||
@@ -47,7 +47,7 @@ class DadosAlunosContainer extends StatelessWidget {
|
||||
),
|
||||
Container(
|
||||
width: width*0.05,
|
||||
child: TextCustom(text: alunoModel.serie.toUpperCase()+'°')
|
||||
child: TextCustom(text: alunoModel.serie.toUpperCase())
|
||||
),
|
||||
Container(
|
||||
width: width*0.05,
|
||||
|
||||
@@ -35,9 +35,15 @@ class DadosResponsaveisContainer extends StatelessWidget {
|
||||
width: width*0.35,
|
||||
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 5),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
CaixaTextoContainer(texto: responsavelModel.NOME,titulo: 'Nome',widthCustom: 0.15),
|
||||
CaixaTextoContainer(texto: responsavelModel.PARENTESCO,titulo: 'Parentesco',widthCustom: 0.1,),
|
||||
responsavelModel.CPF!='' && responsavelModel.SENHA!=''?Container(
|
||||
alignment: Alignment.bottomCenter,
|
||||
margin: EdgeInsets.all(5),
|
||||
child: Icon(Icons.check_circle,color: Colors.green,),
|
||||
):Container()
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user