Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildContext null for HandlerType.function #281

Open
github-fuer-spam opened this issue Sep 25, 2023 · 1 comment
Open

BuildContext null for HandlerType.function #281

github-fuer-spam opened this issue Sep 25, 2023 · 1 comment

Comments

@github-fuer-spam
Copy link

github-fuer-spam commented Sep 25, 2023

Hallo, I want to come back this issue: #125

Perhaps there is a misunderstanding, but if I try in flutter web to use the function handler type with setting a link in the addressbar of the browser, I have a null-context. Is this intentionally so? If so why? Trying to comment out type, I have a context.

Addressbar: http://myWebServerURL/#/user/13

`
static Handler userHandler = Handler(

type: HandlerType.function,

handlerFunc: (

    BuildContext? context,

    Map<String, List<String>> params,

    ) {

    // context is null here

    print(context.toString());

`

thank you for further explanation

@pkondratev
Copy link

The same problem. I wanted to use HandlerType.function for showing bottomSheets, but context is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants