ajuste das urls

This commit is contained in:
Reginaldo
2023-06-21 10:50:07 -03:00
parent 94074c7e8d
commit 50623d9288
3 changed files with 9 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ class _HomeScreenState extends State<HomeScreen> {
alunos.clear();
String q = inputPesquisa.text.replaceAll(' ', '%20').toUpperCase();
// print(q);
final url = 'http://localhost:8000/aluno?NOME=$q';
final url = 'http://192.168.18.2:8000/aluno?NOME=$q';
// print(url);
final response = await http.get(Uri.parse(url));
var map = json.decode(response.body);
@@ -116,13 +116,6 @@ class _HomeScreenState extends State<HomeScreen> {
setState(() {});
}
@override
void initState() {
super.initState();
print('aqui');
print(widget.acesso);
}
@override
Widget build(BuildContext context) {