Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

one way to fixed sliver app bar overlap #48

Open
a616781689 opened this issue Apr 12, 2021 · 0 comments
Open

one way to fixed sliver app bar overlap #48

a616781689 opened this issue Apr 12, 2021 · 0 comments

Comments

@a616781689
Copy link

a616781689 commented Apr 12, 2021

// find sliverlist renderobject
    RenderSliver? renderSliver  = context.findAncestorRenderObjectOfType<RenderSliver>();  

// determineStuckOffset
  double determineStuckOffset() {
    double dy;

    try {
      dy = localToGlobal(Offset(0, -renderSliver.constraints.overlap), ancestor: renderSliver).dy;
    } catch (e) {
      // ignore and fall-through and return 0.0
      dy = 0.0;
    }
    return dy;
  }
@a616781689 a616781689 changed the title a method to fixed sliver app bar overlap one way to fixed sliver app bar overlap Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant