ajustes no app para a api_homol

This commit is contained in:
Reginaldo
2023-08-08 12:29:41 -03:00
parent 6a15293d12
commit af5e5cfff0
14 changed files with 69 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ class _TelaHistoricoState extends State<TelaHistorico> {
getMatriculas()async{
String cd = widget.estudanteModelo.dados[widget.estudanteModelo.nroAluno]['CD_ALUNO'];
final url = 'http://192.168.18.2:8000/matriculas_aluno?CD_ALUNO=$cd&CIDADE=${widget.estudanteModelo.cidade}';
final url = '${widget.estudanteModelo.URL}/matriculas_aluno?CD_ALUNO=$cd&CIDADE=${widget.estudanteModelo.cidade}';
print(url);
final response = await http.get(Uri.parse(url));
var map = json.decode(response.body);