aboutsummaryrefslogtreecommitdiff
path: root/lib/views/week_view.dart
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2023-03-05 12:18:13 +0100
committerdavidpkj <davidpenkow1@gmail.com>2023-03-05 12:18:13 +0100
commitb654999240fbfc4e6c19badb93c7ec54ff4afab6 (patch)
tree8a3904bb5bce857b7faad36168231108009691ea /lib/views/week_view.dart
parentb71c69b065daef4f028146d00951534515c50568 (diff)
Minor bug and spelling fixes
Diffstat (limited to 'lib/views/week_view.dart')
-rw-r--r--lib/views/week_view.dart17
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));