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

How to make a curved bottom app bar #13

Closed
TahaMalas opened this issue Jan 29, 2020 · 5 comments
Closed

How to make a curved bottom app bar #13

TahaMalas opened this issue Jan 29, 2020 · 5 comments

Comments

@TahaMalas
Copy link

Hi!, I'm trying to implement this screenshot with bottom app bar, I didn't manage to make the SideCutClipper to be at the top of the bottom app bar any ideas?

Image description

@lohanidamodar
Copy link
Owner

For that you don't need custom clippers, just use ClipRRect for example

ClipRRect(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(20.0),
          topRight: Radius.circular(20.0)
        ),
              child: BottomAppBar(
          shape: CircularNotchedRectangle(),
          child: Container(
            height: kToolbarHeight,
          ),

        ),
      )

@TahaMalas
Copy link
Author

For that you don't need custom clippers, just use ClipRRect for example

ClipRRect(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(20.0),
          topRight: Radius.circular(20.0)
        ),
              child: BottomAppBar(
          shape: CircularNotchedRectangle(),
          child: Container(
            height: kToolbarHeight,
          ),

        ),
      )

The solution you're suggesting is only for the curved top right and top left corners right? I'm asking for the curve on the selected tab in the bottom tab bar.

@lohanidamodar
Copy link
Owner

I think this is what you are looking for then,
https://github.com/rafalbednarczuk/curved_navigation_bar

@TahaMalas
Copy link
Author

I think this is what you are looking for then,
https://github.com/rafalbednarczuk/curved_navigation_bar

Exactly, thank you so much, and sorry for the inconvenience

@lohanidamodar
Copy link
Owner

No problem! Glad to help!

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

2 participants