API consumindo flutter windows, Android porém não consome web #129
Unanswered
IvanBohnen
asked this question in
Perguntas e Respostas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Boa noite,
Tenho API consumindo flutter windows, Android porém não consome web,
segue o código
`
import 'package:http/http.dart' as http;
Future<List> Select(String vSql) async {
var vRetorno;
const urlPrefix = 'http://192.168.1.99:8888/Select';
final url = Uri.parse(urlPrefix);
final headers = {
"Content-type": "application/json",
"Access-Control_Allow_Origin": "*"
};
final json = '{"TIPO" : "SELECT", "SQL": "' + vSql + '"}';
}
`
dicas são bem vindas obrigado.
Beta Was this translation helpful? Give feedback.
All reactions