fix : add text to bottom sheet

This commit is contained in:
2025-06-29 12:39:14 +03:30
parent 5ba4572f14
commit ad7305b453

View File

@@ -100,7 +100,7 @@ class _WaveBottomNavigationState extends State<WaveBottomNavigation> {
value = (value).clamp(-1, 1); value = (value).clamp(-1, 1);
double offset = value * 30; double offset = value * 30;
if (value.abs() < 0.2 || value.abs() > 0.2) { if (value.abs() < 0.2 || value.abs() > 0.2) {
offset = -7 * (1 - value.abs() * 2); offset = -15 * (1 - value.abs() * 2);
} }
return Transform.scale( return Transform.scale(
@@ -110,14 +110,10 @@ class _WaveBottomNavigationState extends State<WaveBottomNavigation> {
child: Column( child: Column(
children: [ children: [
Tooltip(message: item.title, child: item.icon), Tooltip(message: item.title, child: item.icon),
Visibility(
/* Visibility(
visible: (_controller.page ?? 0) == index, visible: (_controller.page ?? 0) == index,
child: Text( child: Text(item.title, style: AppFonts.yekan10.copyWith(color: Colors.white)),
item.title, ),
style: AppFonts.yekan10.copyWith(color: Colors.white),
),
),*/
], ],
), ),
), ),