HideableBottomBar constructor
const
HideableBottomBar({
- Key? key,
- required int selectedIndex,
- required List<
HideableBottomNavigationItem> children, - required dynamic onSelected(),
- Curve? curve,
- double height = 60,
- Color backgroundColor = Colors.white,
- required double bottomPosition,
- double horizontalPadding = 16,
- Color selectedColor = Colors.black,
- Color unselectedColor = Colors.white,
- BoxShadow shadow = const BoxShadow(color: Colors.grey, blurRadius: 16),
- TextStyle selectedItemTextStyle = const TextStyle(fontSize: 16, color: Colors.white),
- Duration duration = const Duration(milliseconds: 300),
- Widget? bottomBarWidget,
Implementation
const HideableBottomBar({
Key? key,
required this.selectedIndex,
required this.children,
required this.onSelected,
this.curve,
this.height = 60,
this.backgroundColor = Colors.white,
required this.bottomPosition,
this.horizontalPadding = 16,
this.selectedColor = Colors.black,
this.unselectedColor = Colors.white,
this.shadow = const BoxShadow(
color: Colors.grey,
blurRadius: 16,
),
this.selectedItemTextStyle =
const TextStyle(fontSize: 16, color: Colors.white),
this.duration = const Duration(milliseconds: 300),
this.bottomBarWidget,
}) : super(key: key);