I am showing a log in button in a page. Once the user has logged in, the SnackBar
will display "Logged In with Google" for example. While the SnackBar
is still showing, the body of the Scaffold
is being build to a new page, the one accessible by logged in users. However, building the page while the Snackbar
is still showing somehow leaves a padding in the Scaffold, in the area used by the SnackBar
, so the underlying Scaffold
body
is still visible, yet you cannot interact with it. If there is a button at the bottom of that body
, the button is not tapped because the invisible padding left behind by the (already closed) SnackBar
blocks the content underneath.
What am I missing? Is there another way to produce the desired result?