feat : on Tap BottomSheet
This commit is contained in:
@@ -83,7 +83,15 @@ class _WaveBottomNavigationState extends State<WaveBottomNavigation> {
|
||||
physics: const ClampingScrollPhysics(),
|
||||
itemBuilder: (context, index) {
|
||||
final WaveBottomNavigationItem item = widget.items[index];
|
||||
return Center(
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
_controller.animateToPage(
|
||||
index,
|
||||
duration: Duration(milliseconds: 500),
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
},
|
||||
child: Center(
|
||||
child: AnimatedBuilder(
|
||||
animation: _controller,
|
||||
builder: (context, child) {
|
||||
@@ -125,6 +133,7 @@ class _WaveBottomNavigationState extends State<WaveBottomNavigation> {
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user