From f7b653a74e0476e2d17640e6e5fc4df12df3fe71 Mon Sep 17 00:00:00 2001 From: MarsadMaqsood Date: Sun, 31 Mar 2024 16:04:56 +0500 Subject: [PATCH] updated --- example/lib/main.dart | 10 ++-------- lib/src/bottom_bar.dart | 4 +++- 2 files changed, 5 insertions(+), 9 deletions(-) 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 =