From 51ccf4522543aa7573e40140db53d4cdff21a4a5 Mon Sep 17 00:00:00 2001 From: broodjeaap89 Date: Tue, 31 Aug 2021 20:28:48 +0200 Subject: [PATCH] fixed page numbers on pizza event recipe page --- lib/pages/PizzaEventRecipePage.dart | 1 + todo.md | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/PizzaEventRecipePage.dart b/lib/pages/PizzaEventRecipePage.dart index 7517d1b..4c82fee 100644 --- a/lib/pages/PizzaEventRecipePage.dart +++ b/lib/pages/PizzaEventRecipePage.dart @@ -23,6 +23,7 @@ class PizzaEventRecipePageState extends State { @override Widget build(BuildContext context){ var recipeStepCount = this.widget.pizzaEvent.recipe.recipeSteps.length; + recipeStepCount += 1; // because of first description page List pageIndex = []; for (var i = 0;i < recipeStepCount;i++){ pageIndex.add( diff --git a/todo.md b/todo.md index bad94a6..e8f0a0d 100644 --- a/todo.md +++ b/todo.md @@ -11,5 +11,4 @@ ## Refactor -## Bug -- last page missing page numbers on pizza event recipe page \ No newline at end of file +## Bug \ No newline at end of file