diff --git a/examples/stocks/lib/stock_data.dart b/examples/stocks/lib/stock_data.dart index 9bca149d20..39201714fc 100644 --- a/examples/stocks/lib/stock_data.dart +++ b/examples/stocks/lib/stock_data.dart @@ -59,7 +59,7 @@ class StockDataFetcher { } void _fetchNextChunk() { - fetch('data/stock_data_${_currentChunk++}.json').then((Response response) { + fetchBody('data/stock_data_${_currentChunk++}.json').then((Response response) { String json = response.bodyAsString(); JsonDecoder decoder = new JsonDecoder(); diff --git a/examples/stocks2/lib/stock_data.dart b/examples/stocks2/lib/stock_data.dart index d69f44275a..a77ca50a67 100644 --- a/examples/stocks2/lib/stock_data.dart +++ b/examples/stocks2/lib/stock_data.dart @@ -59,7 +59,7 @@ class StockDataFetcher { } void _fetchNextChunk() { - fetch('../data/stock_data_${_currentChunk++}.json').then((Response response) { + fetchBody('../data/stock_data_${_currentChunk++}.json').then((Response response) { String json = response.bodyAsString(); JsonDecoder decoder = new JsonDecoder();