Update States authored by Devin's avatar Devin
States are an essential part of the Flutter UI framework, used to update the UI as the user interacts with the app. Some states, like the loading and initial states, can be empty since they do not require any information. On the other hand, the complete state usually holds the response from the Bloc, which the UI uses to rebuild the page.
# State machine (diagram)
Flutter works like a state machine, where one state moves on to the next when a certain event occurs. Here's a digram for how this works. This machine should be consistent for each page in the game manager, as the page layouts should be consistent.
![state_machine](uploads/d8310520e0b51190c83da0268b122598/state_machine.png)
# Example
Here are the states for creating a new player:
```dart
......
......