Skip to content

BuildContext null for HandlerType.function #281

@github-fuer-spam

Description

@github-fuer-spam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions