Replies: 1 comment
-
¹ You not having access to a build context is probably a design fault in your app. final navigatorKey = GlobalKey<NavigatorState>();
FluentApp(
navigatorKey: navigatorKey,
),
final context = navigatorKey.currentContext;
if (context != null) {
...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to show an InfoBar without having the BuildContext?
MaterialApp has a parameter called scaffoldMessengerKey which allows you to show a Snackbar without having direct access to a BuildContext. So if you have any operation which is far away from the widget tree and the result needs to be delivered to the user, this is very usefull.
Is there a way to get it done if you use FluentApp instead of MaterialApp?
Beta Was this translation helpful? Give feedback.
All reactions