floatingActionButtonBar method
Widget
floatingActionButtonBar(
)
Implementation
Widget floatingActionButtonBar() {
Widget floatingBottomBar(value) {
return SizedBox(
height: 60 *
(MediaQuery.of(context).size.height - value) /
(MediaQuery.of(context).size.height - 50),
child: Container(
margin: const EdgeInsets.symmetric(horizontal: 50),
child: Material(
borderRadius: BorderRadius.circular(50),
elevation: 35,
color: widget.backgroundColor,
child: ClipRRect(
borderRadius: BorderRadius.circular(50),
child: CupertinoTabBar(
border: const Border(
bottom: BorderSide.none,
left: BorderSide.none,
right: BorderSide.none,
top: BorderSide.none,
),
currentIndex: _selectedIndex,
iconSize: 35,
items: getBottomNavigationBarItemIconWithBadge(
showTabLabels: widget.showTabLabelsForFloating!),
onTap: (index) => _onItemTap(index),
activeColor:
widget.activeColor ?? Theme.of(context).primaryColor,
inactiveColor: widget.inactiveColor ?? Colors.black,
backgroundColor: widget.backgroundColor ?? Colors.white,
),
),
),
),
);
}
return ValueListenableBuilder(
valueListenable: expandProgress,
builder: (BuildContext context, double value, _) {
return floatingBottomBar(value);
},
);
}