fluttercommunity / fluttercommunity/community

Request: specific scope disposal

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.7k
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Hello.

Is there a way (or planned) to close some specific scopes?
I'm opening scope for a stateful widget in `initState` method and closing the scope on `dispose` which allows precise DI management.
But stumbled upon inability to dispose my scope, because it's already being overlapped by other route widget.

So I get this sequence:
Screen A init -> Screen B init -> Screen A dispose (which in current flow disposes screen B scope).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.