diff --git a/example/lib/main.dart b/example/lib/main.dart index 785ce59..10067e0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -17,8 +17,8 @@ class MyApp extends StatelessWidget { // useMaterial3: true, primarySwatch: Colors.green, ), - // home: const BubbelBarExample(), - home: const AnimatedBarExample(), + home: const BubbelBarExample(), + // home: const AnimatedBarExample(), ); } } @@ -218,7 +218,6 @@ class _BubbelBarExampleState extends State { backgroundColor: Colors.purple, ), ], - fabLocation: StylishBarFabLocation.center, hasNotch: true, currentIndex: selected, onTap: (index) { @@ -228,11 +227,6 @@ class _BubbelBarExampleState extends State { }); }, ), - floatingActionButton: FloatingActionButton( - onPressed: () {}, - child: const Icon(Icons.emoji_emotions), - ), - floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, ); } } diff --git a/lib/src/bottom_bar.dart b/lib/src/bottom_bar.dart index 220728f..74aca9d 100644 --- a/lib/src/bottom_bar.dart +++ b/lib/src/bottom_bar.dart @@ -206,7 +206,9 @@ class _StylishBottomBarState extends State duration: const Duration(milliseconds: 200), vsync: this, )..addListener(() { - // setState(() {}); // removed + if (widget.option.runtimeType == BubbleBarOptions) { + setState(() {}); + } }); }); _animations =