Add lots of listen: false when using Provider

Provider version 4 has an assert which fires if used incorrectly.
This commit is contained in:
Vishesh Handa
2020-09-28 00:09:14 +02:00
parent c20f8314c1
commit 43269bbe53
10 changed files with 17 additions and 16 deletions

View File

@ -468,7 +468,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
gitCloneErrorMessage = "";
});
var stateContainer = Provider.of<StateContainer>(context);
var stateContainer = Provider.of<StateContainer>(context, listen: false);
var basePath = stateContainer.appState.gitBaseDirectory;
// Just in case it was half cloned because of an error