Skip to content

Question: How to provide something to a single or multiple screens? #91

Description

@TheManuz

I've took some time to experiment with this package.

It's surely interesting, but I think the package is still young and I've found a little hard to achieve some things.

Example: I want to wrap a group of screens with a Provider (a BlocProvider to be precise, but it could've been a RepositoryProvider, a Listenable, anything that I want to be visibile from the context).

For this, I have to group the routes into a sealed class group, so I can provide a KaiselShell of this sealed subclass, just to be able to use the chromeBuilder.

But now I've spawned another navigator, since I have a KaiselShell with a single shell, and the default back buttons from the Scaffolds are broken.

Maybe I'm trying to apply the wrong pattern here, I don't know, but providing things with context is a basic thing to do in Flutter.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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