Skip to content

allow variable height front pages #70

Closed
@mockturtl

Description

@mockturtl

Is your feature request related to a problem? Please describe.

My first front page is a large form. It displays well.

Screenshot from 2021-01-10 17-34-12

My second front page is mostly empty:

Screenshot from 2021-01-10 17-33-08

I'd like to provide a target height for this page, so it expands to a more appropriate size for its content.

Screenshot from 2021-01-10 17-32-50

Describe the solution you'd like

I can get my desired behavior by adjusting the top param of the end rectangle in _getPanelAnimation.

Could we expose a variable for this?

Describe alternatives you've considered

I haven't explored how this will interact with the other BackdropScaffold constructor args.

Maybe PreferredSizeWidget is a useful way to convey the behavior?

Additional context

The Material spec doesn't address whether front pages should have a consistent height.

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