Does anyone know why i got the Failed assertion: boolean expression must not be null. If I had logged in and quit the app and open the app again i should be directly in the home
If your 'value' here can become null - you get the error. To be safe change the line inside setState to:
userIsLoggedIn = value ?? false;
it will set the bool to false if value is null