therezacuet / Motion-Tab-Bar

A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
MIT License
293 stars 74 forks source link

How to deactivate bulge animation #13

Closed zyllus17 closed 3 years ago

zyllus17 commented 3 years ago

I have four buttons in Bottom Nav bar, I want it to be deactivated and be plain when it is not in those specific pages. Any way I can do it now?

zyllus17 commented 3 years ago

@therezacuet Any way I can do this?

therezacuet commented 3 years ago

I am working on this.

zyllus17 commented 3 years ago

@therezacuet Can you give me a timeframe, if its gonna be late then I have to custom build it myself

shw2ypro commented 3 years ago

I'm working with this aswell, would love to see something like this with 5 buttons

shw2ypro commented 3 years ago

@therezacuet Can you give me a timeframe, if its gonna be late then I have to custom build it myself

@zyllus17 If you do create something custom for this would you please share any progress? Thank you!

zyllus17 commented 3 years ago

@therezacuet Can you give me a timeframe, if its gonna be late then I have to custom build it myself

@zyllus17 If you do create something custom for this would you please share any progress? Thank you!

@shw2ypro I did some research on this and found that you cannot deactivate all at once, one has to remain active at all times, its just how Flutter works. There is a work around though, if you use a default navbar you can make it force the UI to show it null even though it will be active/elevated. I don't have time to build it as of now but if I get time, I will notify you.

zyllus17 commented 3 years ago

@therezacuet Can you give me a timeframe, if its gonna be late then I have to custom build it myself

@zyllus17 If you do create something custom for this would you please share any progress? Thank you!

@shw2ypro I did some research on this and found that you cannot deactivate all at once, one has to remain active at all times, its just how Flutter works. There is a work around though, if you use a default navbar you can make it force the UI to show it null even though it will be active/elevated. I don't have time to build it as of now but if I get time, I will notify you.

@shw2ypro I found something which may help you. Check this article, from it you can build the same bottom navigation bar on your own. https://medium.com/@tonyowen/flutter-bottom-tab-bar-animation-75d1ca58c096