Flutter BLoC: Right way to Handle navigation

Pedro Massango on July 21, 2019

If you have been using Flutter with BLoc maybe you had the necessity to navigate to a new page inside of your BLoC as we know we don't have a Build... [Read Full]
markdown guide
 

I only got it working after I changed the code to the following:

child: MaterialApp(
navigatorKey: _navigatorKey,
title: 'My App',
home: HomePage(),
)

Otherwise, the navigatorKey would not contain any state.

 
 
 

Hello, I am trying to use your example, but in navigation_bloc.dart, I am getting NavigationAction is not a type.

 
 

This looks like a blocky way to navigate... indirectly

:) I think you're missing the redux dependency

Nice job on the article

 
code of conduct - report abuse