comprehensive cases
This commit is contained in:
@@ -123,26 +123,30 @@ class StaffMainBottomBar extends StatelessWidget {
|
||||
|
||||
final bool isSelected = currentIndex == item.index;
|
||||
return Expanded(
|
||||
child: GestureDetector(
|
||||
onTap: () => onTap(item.index),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
item.icon,
|
||||
color: isSelected ? activeColor : inactiveColor,
|
||||
size: UiConstants.iconLg,
|
||||
),
|
||||
const SizedBox(height: UiConstants.space1),
|
||||
Text(
|
||||
item.label,
|
||||
style: UiTypography.footnote2m.copyWith(
|
||||
child: Semantics(
|
||||
identifier: 'nav_${item.tabKey}',
|
||||
label: item.label,
|
||||
child: GestureDetector(
|
||||
onTap: () => onTap(item.index),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: <Widget>[
|
||||
Icon(
|
||||
item.icon,
|
||||
color: isSelected ? activeColor : inactiveColor,
|
||||
size: UiConstants.iconLg,
|
||||
),
|
||||
),
|
||||
],
|
||||
const SizedBox(height: UiConstants.space1),
|
||||
Text(
|
||||
item.label,
|
||||
style: UiTypography.footnote2m.copyWith(
|
||||
color: isSelected ? activeColor : inactiveColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user