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