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);
|
mes = data.substring(4,6);
|
||||||
ano = data.substring(0,4);
|
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]);
|
resultadoPesquisa.add(alunos[i]);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
showSnackBar(context, 'Aluno(a) não localizado', Colors.red);
|
showSnackBar(context, 'Aluno(a) não matriculado em ${DateTime.now().year}', Colors.red);
|
||||||
}
|
}
|
||||||
setState(() {
|
setState(() {
|
||||||
buscandoDados = false;
|
buscandoDados = false;
|
||||||
@@ -155,7 +155,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
controller: inputPesquisa,
|
controller: inputPesquisa,
|
||||||
width: width*0.25,
|
width: width*0.25,
|
||||||
inputFormatters: [],
|
inputFormatters: [],
|
||||||
fontSize: 12,
|
fontSize: 14,
|
||||||
colorBackground: Colors.white,
|
colorBackground: Colors.white,
|
||||||
),
|
),
|
||||||
ButtonCustom(
|
ButtonCustom(
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
//AMENEZES LOGIN DIFERENTE DA SENHA
|
//AMENEZES LOGIN DIFERENTE DA SENHA
|
||||||
//SENHAS CRIPTOGRAFADAS PORQUE FORMA ALTERADAS, SENHAS NOVAS USUÁRIO E SENHA SÃO IGUAIS
|
//SENHAS CRIPTOGRAFADAS PORQUE FORMA ALTERADAS, SENHAS NOVAS USUÁRIO E SENHA SÃO IGUAIS
|
||||||
// final inputLogin = TextEditingController(text: 'mmatos');
|
// final inputLogin = TextEditingController(text: 'mmatos');
|
||||||
final inputLogin = TextEditingController(text: 'admin');
|
final inputLogin = TextEditingController(text: 'ibueno');
|
||||||
final inputSenha = TextEditingController(text: 'rkm12345');
|
final inputSenha = TextEditingController(text: 'ibueno');
|
||||||
// final inputSenha = TextEditingController(text: 'mmatos');
|
// final inputSenha = TextEditingController(text: 'mmatos');
|
||||||
bool loading = false;
|
bool loading = false;
|
||||||
|
|
||||||
|
|||||||
@@ -208,9 +208,9 @@ class _ResponsibleRegisterScreenState extends State<ResponsibleRegisterScreen> {
|
|||||||
carregando = true;
|
carregando = true;
|
||||||
});
|
});
|
||||||
final url = 'http://localhost:8000/deleta?CPF=$cpf';
|
final url = 'http://localhost:8000/deleta?CPF=$cpf';
|
||||||
print(url);
|
// print(url);
|
||||||
final response = await http.get(Uri.parse(url));
|
final response = await http.get(Uri.parse(url));
|
||||||
print(response.body);
|
// print(response.body);
|
||||||
if(response.body == 'deletado com sucesso'){
|
if(response.body == 'deletado com sucesso'){
|
||||||
responsaveis.removeAt(index);
|
responsaveis.removeAt(index);
|
||||||
carregando = false;
|
carregando = false;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class DadosAlunosContainer extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: width*0.05,
|
width: width*0.05,
|
||||||
child: TextCustom(text: alunoModel.serie.toUpperCase()+'°')
|
child: TextCustom(text: alunoModel.serie.toUpperCase())
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: width*0.05,
|
width: width*0.05,
|
||||||
|
|||||||
@@ -35,9 +35,15 @@ class DadosResponsaveisContainer extends StatelessWidget {
|
|||||||
width: width*0.35,
|
width: width*0.35,
|
||||||
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 5),
|
padding: EdgeInsets.symmetric(vertical: 10,horizontal: 5),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
CaixaTextoContainer(texto: responsavelModel.NOME,titulo: 'Nome',widthCustom: 0.15),
|
CaixaTextoContainer(texto: responsavelModel.NOME,titulo: 'Nome',widthCustom: 0.15),
|
||||||
CaixaTextoContainer(texto: responsavelModel.PARENTESCO,titulo: 'Parentesco',widthCustom: 0.1,),
|
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