sooxt98 / google_nav_bar

A modern google style nav bar for flutter.
MIT License
726 stars 112 forks source link

google_nav_bar 5.0.5 make text visible #64

Closed spacekestrel closed 3 years ago

spacekestrel commented 3 years ago

Can i make text always visible and tab without an icon?

sooxt98 commented 3 years ago

@spacekestrel for now, yes you can, but without Gnav

Container(
  child: Row(
    mainAxisAlignment: MainAxisAlignment.spaceBetween,
    child: [
      GButton(
        active: true,
        icon: LineIcons.home,
        text: 'Home'
      ),
      GButton(
        active: true,
        icon: LineIcons.heart_o,
        text: 'Likes'
      ),
      GButton(
        active: true,
        icon: LineIcons.search,
        text: 'Search'
      ),
      GButton(
        active: true,
        icon: LineIcons.user,
        text: 'Profile'
      )
    ]
  )
)

In future, user are able to specify expandedTab: true to Gnav to expand all GButton by default

spacekestrel commented 3 years ago

@spacekestrel for now, yes you can, but without Gnav

Container(
  child: Row(
    mainAxisAlignment: MainAxisAlignment.spaceBetween,
    child: [
      GButton(
        active: true,
        icon: LineIcons.home,
        text: 'Home'
      ),
      GButton(
        active: true,
        icon: LineIcons.heart_o,
        text: 'Likes'
      ),
      GButton(
        active: true,
        icon: LineIcons.search,
        text: 'Search'
      ),
      GButton(
        active: true,
        icon: LineIcons.user,
        text: 'Profile'
      )
    ]
  )
)

In future, user are able to specify expandedTab: true to Gnav to expand all GButton by default

Okay, thanks.