pedromassango / bottom_navy_bar

A beautiful and animated bottom navigation
https://youtu.be/jJPSKEEiN-E
Apache License 2.0
1.02k stars 215 forks source link

[Q] I have 2 items, how to center it? #31

Closed nguyenhuutinh closed 4 years ago

nguyenhuutinh commented 4 years ago

hello, thanks for your plugin. My question is : I have 2 items, how to center it?

Thanks

nguyenhuutinh commented 4 years ago
Screenshot 2019-11-04 at 11 00 02 PM
georgeherby commented 4 years ago

Looks like this is not possible currently. It could be added as a config option via PR/change

It currently uses MainAxisAlignment.spaceBetween if it was a config you could use center or spaceAround

https://github.com/pedromassango/bottom_navy_bar/blob/master/lib/bottom_navy_bar.dart#L97

georgeherby commented 4 years ago

@nguyenhuutinh See #33

pedromassango commented 4 years ago

Hey @georgeherby I'm waiting your conflicts to close this issue in the #33

georgeherby commented 4 years ago

All done @pedromassango