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;
|
||||
|
||||
Reference in New Issue
Block a user