From ad7305b453d54685a79612a97c4336327c318004 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Sun, 29 Jun 2025 12:39:14 +0330 Subject: [PATCH] fix : add text to bottom sheet --- .../bottom_navigation/wave_bottom_navigation.dart | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/core/lib/presentation/widget/bottom_navigation/wave_bottom_navigation.dart b/packages/core/lib/presentation/widget/bottom_navigation/wave_bottom_navigation.dart index 3db9ad8..754b2eb 100644 --- a/packages/core/lib/presentation/widget/bottom_navigation/wave_bottom_navigation.dart +++ b/packages/core/lib/presentation/widget/bottom_navigation/wave_bottom_navigation.dart @@ -100,7 +100,7 @@ class _WaveBottomNavigationState extends State { value = (value).clamp(-1, 1); double offset = value * 30; if (value.abs() < 0.2 || value.abs() > 0.2) { - offset = -7 * (1 - value.abs() * 2); + offset = -15 * (1 - value.abs() * 2); } return Transform.scale( @@ -110,14 +110,10 @@ class _WaveBottomNavigationState extends State { child: Column( children: [ Tooltip(message: item.title, child: item.icon), - - /* Visibility( + Visibility( visible: (_controller.page ?? 0) == index, - child: Text( - item.title, - style: AppFonts.yekan10.copyWith(color: Colors.white), - ), - ),*/ + child: Text(item.title, style: AppFonts.yekan10.copyWith(color: Colors.white)), + ), ], ), ),