We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747fca9 commit f94e225Copy full SHA for f94e225
lib/main.dart
@@ -47,8 +47,8 @@ class _MyHomePageState extends State<MyHomePage> {
47
}
48
49
Future<String> getJsonFromFirebaseRestAPI() async {
50
- var url = "https://flutterdemo-f6d47.firebaseio.com/chartSalesData.json";
51
- var response = await http.get(Uri.parse(url));
+ String url = "https://flutterdemo-f6d47.firebaseio.com/chartSalesData.json";
+ http.Response response = await http.get(Uri.parse(url));
52
return response.body;
53
54
0 commit comments