westdabestdb/bubble_bottom_bar

Example with FAB button?

Closed this issue · 6 comments

Can please provide an example with a fab button?

Of course, I was little busy yesterday, but will do it today!

Agreed! I can't figure out how to add the FAB - there's no reference to it in the BubbleBottomBar class other than its location!

@jgadsby @udiedrichsen If you want to add a fab add this code to your scaffold:

floatingActionButton: FloatingActionButton(onPressed: (){}, child: Icon(Icons.add), ),
floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,

then make sure the same settings are being used in the bottom bar:

fabLocation: BubbleBottomBarFabLocation.end,

Hope this helps

Awesome, thanks guys!

@DevTard Thank you for covering me! I'm dealing with multiple deadlines & final exams so couldn't have time to look up here.

Hello everybody! Thank you for using the package. I pushed a new update to example app, which now has fab code. Check it in this commit.