Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsadMaqsood committed Mar 31, 2024
1 parent c3f2625 commit f7b653a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 2 additions & 8 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}
}
Expand Down Expand Up @@ -218,7 +218,6 @@ class _BubbelBarExampleState extends State<BubbelBarExample> {
backgroundColor: Colors.purple,
),
],
fabLocation: StylishBarFabLocation.center,
hasNotch: true,
currentIndex: selected,
onTap: (index) {
Expand All @@ -228,11 +227,6 @@ class _BubbelBarExampleState extends State<BubbelBarExample> {
});
},
),
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: const Icon(Icons.emoji_emotions),
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
);
}
}
4 changes: 3 additions & 1 deletion lib/src/bottom_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ class _StylishBottomBarState extends State<StylishBottomBar>
duration: const Duration(milliseconds: 200),
vsync: this,
)..addListener(() {
// setState(() {}); // removed
if (widget.option.runtimeType == BubbleBarOptions) {
setState(() {});
}
});
});
_animations =
Expand Down

0 comments on commit f7b653a

Please sign in to comment.