Flutter-Blog-App
Flutter-Blog-App copied to clipboard
The argument type 'String' can't be assigned to the parameter type 'Uri'.
On the Network Handler page the following error shows up
Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.
- 'Uri' is from 'dart:core'.
var response = await http.get(url);
It may be because of the http package which was updated to 0.13.0
now you need to use the 'Uri.parse()' var url = Uri.parse('http://websiteapi');