//TODO: Step 20 - Download the story plan here: https://drive.google.com/uc?export=download&id=1KU6EghkO9Hf2hRM0756xFHgNaZyGCou3

Head over here to download the story plan:

https://drive.google.com/uc?export=download&id=1KU6EghkO9Hf2hRM0756xFHgNaZyGCou3


//TODO: Step 21 - Using the story plan, update nextStory to change the storyNumber depending on the choice made by the user.

This plan will determine how the user will progress through the story. If you're not familiar with how choose your own adventure games work, be sure to read it up here:

https://en.wikipedia.org/wiki/Choose_Your_Own_Adventure


The user will start on story 0, the first story in the _storyData List.

If they click on the top button (red), they made Choice1 and the screen should refresh to show Story 2 and 2 new choices. But if they picked Choice 2, it should take them to story 1 instead.


This is how the whole story will play out at a glance:

If the user chooses choice 1 when they see Story0, they will be taken to Story2, from there, if they choose choice1 again, they get taken to story5 and the game ends there.

You can download this story outline as a PDF here:

https://drive.google.com/uc?export=download&id=1XgnMqvQ7AldYUM-wS0wX5rDNT_GwxSjU


HINT: You'll need to use what you've learn about Dart conditionals (IF/ELSE IF/ELSE) to map out different pathways for the user.


Step 21 SOLUTION