From 62207eb6c7177bd2e9f92178097624d37f8c63a6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 8 Dec 2019 01:27:40 +0100 Subject: [PATCH] StateContainer: Mark a field final With this we're one step closer to making the StateContainer a stateless widget. --- lib/state_container.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/state_container.dart b/lib/state_container.dart index 135518d1..f02eddf9 100644 --- a/lib/state_container.dart +++ b/lib/state_container.dart @@ -35,7 +35,11 @@ class StateContainer extends StatefulWidget { } class StateContainerState extends State { - 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; StateContainerState(this.appState);