loading...

re: Flutter BLoC: Right way to Handle navigation VIEW POST

FULL DISCUSSION
 

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.

 
code of conduct - report abuse