title: Bloc, Flutter and Navigation
body: <p>So like most, i'm new to Bloc and flutter and dart and wrapping my head around. I've googled, looked through the posts here but haven't found really any answers.</p>
  
  <p>So this is about navigation with bloc and flutter. Take the example of a Login. So there is a login page with a bloc behind it and at some point someone presses a button to login.</p>
  
  <p>So we can call a function in the bloc that does the validation. I think this is against the strict approach but i see people doing this. But then if login is successful how do you navigate to the next screen? You're not supposed to navigate in a bloc?</p>
  
  <p>But if that login page is using a StreamBuilder to change state then you cannot add a navigate in a builder either can you? You can't return navigation, you return widgets.</p>
  
  <p>The initstate is somewhere you could navigate, but can you have a stream builder in an initstate that listens for state changes in the bloc?</p>
  
  <p>It's all a little confusing right now but i'm persevering as this is <em>supposed</em> to be the way forward...</p>
  
  <p>thanks
  Paul</p>