1import 'package:http/http.dart' as http;
2
3 var url = Uri.parse('https://jsonplaceholder.typicode.com/todos/1');
4 var response = await http.get(url);
5 Map data = jsonDecode(response.body);
6 print(data);
7
1Just follow this link : https://flutter.dev/docs/get-started/install
2And follow each and every step