convex_bottom_bar icon indicating copy to clipboard operation
convex_bottom_bar copied to clipboard

How can I center vertically the items?

Open ousvat opened this issue 3 years ago • 6 comments

How can I center the items vertically? I gave a significant height to the navigation bar but the items are sticked to bottom.

Here is how it looks: image

ousvat avatar Sep 19 '22 13:09 ousvat

post with screenshots please

avenwu avatar Sep 20 '22 00:09 avenwu

post with screenshots please

I updated the question.

ousvat avatar Sep 20 '22 06:09 ousvat

Since each tab can have different visual height, the default alignment of tabs are set as center vertical or align bottom. In your case I guess your are using TabStyle.react.

You may switch to this brunch temporary.

https://github.com/hacktons/convex_bottom_bar/pull/new/feature-alignment

avenwu avatar Sep 22 '22 12:09 avenwu

How can I center the items vertically? I gave a significant height to the navigation bar but the items are sticked to bottom.

Here is how it looks: image

I'm having the same issue, the navbar height is set to 80 and items are stuck at the bottom. That feature would be very helpful. Here is how it looks: WhatsApp Image 2023-01-24 at 11 58 31

RenatoMoratto avatar Jan 24 '23 15:01 RenatoMoratto

Any updates?

RomanSoviak avatar Sep 01 '23 09:09 RomanSoviak

Sorry, I forgot to give my feedback here, but this approach worked for me.

Since each tab can have different visual height, the default alignment of tabs are set as center vertical or align bottom. In your case I guess your are using TabStyle.react.

You may switch to this brunch temporary.

https://github.com/hacktons/convex_bottom_bar/pull/new/feature-alignment

This is how I added the dependency:

 convex_bottom_bar:
    git:
      url: [email protected]:hacktons/convex_bottom_bar.git
      ref: `feature-alignment`

The navbar final version: image

RenatoMoratto avatar Sep 01 '23 12:09 RenatoMoratto