BarStyle constructor Null safety
- {double height = 28.0,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- Color backgroundColor = const Color(0xFF424242),
- double gap = 0.0,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 0.0),
- bool closeMenuOnHoverLeave = true,
- bool openMenuOnHover = false,
- Duration closeMenuOnHoverDelay = const Duration(milliseconds: 400)}
Style the menu bar itself by implementing a custom BarStyle.
Implementation
const BarStyle({
this.height = 28.0,
this.mainAxisAlignment = MainAxisAlignment.start,
this.backgroundColor = const Color(0xFF424242),
this.gap = 0.0,
this.padding = const EdgeInsets.symmetric(horizontal: 0.0),
this.closeMenuOnHoverLeave = true,
this.openMenuOnHover = false,
this.closeMenuOnHoverDelay = const Duration(milliseconds: 400),
});