Skip to content

maxWidth and page navigation animation (flutter web 2 & 3) #105

@knbmedia

Description

@knbmedia

Hi
In my Flutter Web application I set the max width of my app to 800 pixels.

builder: (context, widget) => ResponsiveWrapper.builder(
          ClampingScrollWrapper.builder(context, widget!),
          maxWidth: 800,
          minWidth: 600,
          defaultScale: true,
          breakpoints: [
            ResponsiveBreakpoint.resize(480, name: MOBILE),
            ResponsiveBreakpoint.autoScale(800, name: TABLET),
            ResponsiveBreakpoint.resize(1000, name: DESKTOP),
          ],
          background: Container(color: Color(0xFFccF5F5))),

But when pushing new page, the default slide transition start (or end when back) outside this limit:

transition

To reproduce, juste create a default flutter project, use this package with maxWidth and navigate to a second page.

Regards

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