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

Adding a text below the icon #11

Open
rizaljanuari opened this issue Mar 25, 2019 · 5 comments
Open

Adding a text below the icon #11

rizaljanuari opened this issue Mar 25, 2019 · 5 comments

Comments

@rizaljanuari
Copy link

Hello, on the point, its a great work. but can i ask u about how to add a text below the icons? i try to wrap it in a column, its work but the text is also pop up when the icon pressed, so the text is overflow the button button. How to make the text is stay at the navbar? Thanks and sorry for my bad english

@Jayant2204
Copy link

Jayant2204 commented Apr 11, 2019

It was not designed to have text and Icons as well, but if you still need to have text and Icons

`CurvedNavigationBar(
                backgroundColor: Colors.white,
                color: Colors.black12,
                items: <Widget>[
                  Column(
                    children: <Widget>[
                      Icon(Icons.home, size: 20),
                      Text('Home')
                    ],
                  ),
                  Column(
                    children: <Widget>[
                      Icon(Icons.local_florist, size: 20),
                      Text('florist')
                    ],
                  ),
                  Column(
                    children: <Widget>[
                      Icon(Icons.settings, size: 20),
                      Text('settings')
                    ],
                  ),
                  Column(
                    children: <Widget>[
                      Icon(Icons.share, size: 20),
                      Text('share')
                    ],
                  ),
                ],
                onTap: (index) {
                  //Handle button tap
                },`

Keep in mind bigger Icon size will result in overflow.

@tounoussiKhalid
Copy link

tounoussiKhalid commented May 22, 2019

Actually what I want is that the text in the bottom of the circle not inside the circle when it's focused, how to implement this ?
Screenshot_85

@Spiderbezno
Copy link

I think that functionality is very interesting

@abdu292
Copy link

abdu292 commented Jan 25, 2023

@rafalbednarczuk Amazing work. I'm very new to flutter. I was just wondering if you have any plan to implement this future?

People who are expert in dart & flutter can make the pull requests as well: This future is available in two other packages (for inspiration if that helps)

https://pub.dev/packages/curved_labeled_navigation_bar
https://pub.dev/packages/curved_navigation_bar_with_label

@juliavi
Copy link

juliavi commented Sep 26, 2023

Actually what I want is that the text in the bottom of the circle not inside the circle when it's focused, how to implement this ?
Screenshot_85

You can easily achieve this by wrapping the scaffold with a stack,
and placing a bottomCenter aligned row on the bottom of the stack - with the labels.

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

6 participants