diff options
Diffstat (limited to 'lib/views/week_view.dart')
-rw-r--r-- | lib/views/week_view.dart | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/views/week_view.dart b/lib/views/week_view.dart index 8ea43a4..23d71b8 100644 --- a/lib/views/week_view.dart +++ b/lib/views/week_view.dart @@ -36,7 +36,9 @@ class _WeekViewState extends State<WeekView> { setState(() {}); }, child: ListView( - children: _buildRecipeCardsFromString(snapshot.data.body), + children: [ + Text("Not implemented"), // TODO: Not implemented + ], ), ); }, @@ -58,19 +60,6 @@ class _WeekViewState extends State<WeekView> { } } - List<Widget> _buildRecipeCardsFromString(String string) { - List<Widget> _list = []; - RecipeData.remoteRecipeList.clear(); - - for (dynamic _entry in jsonDecode(string)) { - Recipe _recipe = Recipe.fromJson(jsonEncode(_entry)); - RecipeData.remoteRecipeList.add(_recipe); - _list.add(RecipeCard(remote: true, recipe: _recipe)); - } - - return _list; - } - Future<Null> _retry() async { await Future.delayed(Duration(milliseconds: 300)); |