The Destini app is an interactive story app built using Flutter and Dart. The app features a story with multiple choices that lead to different story paths based on user decisions.
The MaterialApp widget sets up the app with a dark theme.
This StatefulWidget represents the main screen of the app, containing the story text and choice buttons.
A background image is set as the decoration for the Container widget, providing a visually appealing backdrop for the story.
The story text is displayed in a Text widget with a font size of 25.0.
There are two choice buttons in the app, with the text for each button being provided by the getChoice1()
and getChoice2()
methods from the StoryBrain class. The buttons have different background colors and font sizes.
The second choice button's visibility is controlled by the buttonShouldBeVisible()
method from the StoryBrain class. The button is hidden when it's not needed.
The StoryBrain class contains the logic for managing the story, choices, and navigation. It has a list of Story objects that represent the different story paths and choices.