navigatorKey property
Navigator key that must be passed to MaterialApp.navigatorKey.
DigiaHost sits in MaterialApp.builder, which is above the app's Navigator in the widget tree. Dialogs and bottom sheets require a context that is a descendant of that navigator; this key provides it.
MaterialApp(
navigatorKey: DigiaHost.navigatorKey,
navigatorObservers: [DigiaNavigatorObserver()],
builder: (context, child) => DigiaHost(child: child!),
)
Implementation
final GlobalKey<NavigatorState>? navigatorKey;