fix : add text to bottom sheet
This commit is contained in:
@@ -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),
|
|
||||||
),
|
|
||||||
),*/
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user