title: MaterialApp home widget doesn't get rendered when Consumer triggers rebuild. NEEDS-PAINT
body: <p>I'm playing around with Flutter and while building the login flow I've stumbled upon an issue I couldn't figure out.
  The main idea is that I'm using a provider for the Authentication details and this is exposing a getter saying if the user is authenticated or not. Based on this, I want to conditionally set the <strong>home</strong> widget to either be the Dashboard or the Welcome screen of the app. This technique is exactly the same one used in a udemy course by Maximilian Schwarzmüller.
  <a href="https://i.stack.imgur.com/qGlnJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qGlnJ.png" alt="enter image description here" /></a></p>
  <p>Now, I've checked with debugger and after successfully setting the authentication, the home widget is not changed. In DevTools, I can see the DashboardScreen widget being added to the tree, but is not displayed on the screen. It has though a strange message with 'NEEDS-PAINT'.</p>
  <p><a href="https://i.stack.imgur.com/oKxQz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKxQz.png" alt="enter image description here" /></a></p>
  <p>Here's the DashboardScreen widget just for the information:
  <a href="https://i.stack.imgur.com/wanEZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wanEZ.png" alt="enter image description here" /></a></p>
  <p>Is there something I'm doing wrong?
  Thanks!</p>