alterado a url da API e ajustado a tela home_screen.dart

This commit is contained in:
Reginaldo
2023-06-14 16:28:20 -03:00
parent 683a784441
commit ffde39e0f5
4 changed files with 49 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ class _LoginScreenState extends State<LoginScreen> {
}
conectAPI()async{
final url = 'http://192.168.18.2/projeto/api_educa/index.php/?NO_USERNAME=${inputLogin.text.toUpperCase()}';
final url = 'http://localhost:8000/login?NO_USERNAME=${inputLogin.text.toUpperCase()}';
print(url);
final response = await http.get(Uri.parse(url));
var map = json.decode(response.body);