mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 09:06:43 +08:00
StateContainer: Mark a field final
With this we're one step closer to making the StateContainer a stateless widget.
This commit is contained in:
@ -35,7 +35,11 @@ class StateContainer extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class StateContainerState extends State<StateContainer> {
|
class StateContainerState extends State<StateContainer> {
|
||||||
AppState appState;
|
final AppState appState;
|
||||||
|
|
||||||
|
// FIXME: The gitRepo should never be changed once it has been setup
|
||||||
|
// We should always just be modifying the 'git remotes'
|
||||||
|
// With that, the StateContainer can be a StatelessWidget
|
||||||
GitNoteRepository _gitRepo;
|
GitNoteRepository _gitRepo;
|
||||||
|
|
||||||
StateContainerState(this.appState);
|
StateContainerState(this.appState);
|
||||||
|
Reference in New Issue
Block a user