how can i get data from API using flutter?

Viewed 24

I am new to flutter , I am creating an app and want to integrate JSON API in my application for Quran , Qibla and all things like this. Kindly suggest me best API for this requirement and how i will be able to integrate this API in my App?

  Future<Map> getNews() async {
  String apiurl = "https://your url/";
  http.Response response = await http.get(apiurl);
  return json.decode(response.body);
}
0 Answers
Related