Skip to content

Commit f94e225

Browse files
committed
changes in the sample
1 parent 747fca9 commit f94e225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class _MyHomePageState extends State<MyHomePage> {
4747
}
4848

4949
Future<String> getJsonFromFirebaseRestAPI() async {
50-
var url = "https://flutterdemo-f6d47.firebaseio.com/chartSalesData.json";
51-
var response = await http.get(Uri.parse(url));
50+
String url = "https://flutterdemo-f6d47.firebaseio.com/chartSalesData.json";
51+
http.Response response = await http.get(Uri.parse(url));
5252
return response.body;
5353
}
5454

0 commit comments

Comments
 (0)