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

Safe Area Problem #32

Open
3rsin3rgul opened this issue May 12, 2019 · 6 comments
Open

Safe Area Problem #32

3rsin3rgul opened this issue May 12, 2019 · 6 comments

Comments

@3rsin3rgul
Copy link

Simulator Screen Shot - iPhone Xʀ - 2019-05-12 at 13 35 07
Hello ,
How can we arrange this navigatorbar for safe area?

@frossetto
Copy link

I'm also running into this problem, is there any workaround for now?

@mockturtl
Copy link

To clarify: wrapping with a SafeArea correctly avoids the Home indicator, but inactive item labels (normally offscreen) become visible in the new margin.

@mockturtl
Copy link

Seems to duplicate #19.

@mockturtl
Copy link

Workaround:

  • wrap with a SafeArea
  • wrap FancyBottomNavigation in a ClipRect using an offset CustomClipper to prevent painting past the bottom edge
Widget build(BuildContext context) => ClipRect(
        clipper: _Clipper(),
        child: FancyBottomNavigation(...),
);

class _Clipper extends CustomClipper<Rect> {
  @override
  Rect getClip(Size size) =>
      Rect.fromLTWH(0, -size.height, size.width, size.height * 2);

  @override
  bool shouldReclip(CustomClipper<Rect> oldClipper) => false;
}

@legallyfree
Copy link

legallyfree commented Aug 24, 2019

there is a const double property TEXT_OFF = 3;
inside tabItem.dart, inside the package I mean
change the 3 to the 5 or go testing,
5 worked for me.

it's always good to see the code and
fix it from there,
We are programmers for a reason

luck

@Amr1440
Copy link

Amr1440 commented Aug 22, 2021

Same issue

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

5 participants