Skip to content

[Question] Knowing the current breakpoint #7

Closed

Description

@matthewrice345

It seems like all the decision making is made a or near the root of the app. How would I know the currently active breakpoint further down the widget tree to make a decision on how a child widget is laid out?

Maybe this is more of a feature request? I know I can use my own tooling with Provider or something but seems like a tool that would be very useful to have baked in.

Activity

  1. rayliverified commented on Apr 23, 2020

    @rayliverified
    Contributor

    Thanks for trying out the Responsive Framework. To answer your question, you can access ResponsiveWrapper's internal data with ResponsiveWrapper.of(context).

    I'll be adding more documentation in this regard for the v0.3.0 release.

    all the decision making is made a or near the root of the app

    Nice work identifying one of the core tenants of the Reponsive Framework ;)
    I want people to think about responsiveness in a top-down, layout-driven way.

  2. matthewrice345 commented on Apr 23, 2020

    @matthewrice345
    Author

    Thanks much and good work!

  3. jg-l commented on Apr 26, 2020

    @jg-l

    Thanks for trying out the Responsive Framework. To answer your question, you can access ResponsiveWrapper's internal data with ResponsiveWrapper.of(context).

    I'll be adding more documentation in this regard for the v0.3.0 release.

    all the decision making is made a or near the root of the app

    Nice work identifying one of the core tenants of the Reponsive Framework ;)
    I want people to think about responsiveness in a top-down, layout-driven way.

    Can help with documentation! This package is great and needs more recognition

  4. rayliverified commented on Apr 30, 2020

    @rayliverified
    Contributor

    @jg-l thanks for the offer to help with the documentation! Please email me at ray@codelessly.com and I can help you get started.
    Right now, I'm still working on finalizing the API for v0.1.0 so there's a lot to help with.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions