Sidebar constructor
const
Sidebar({
- Key? key,
- required SidebarController controller,
- Color backgroundColor = const Color(0xFF263238),
- Color selectedColor = Colors.amber,
- Color unselectedColor = Colors.white70,
- Color hoverColor = Colors.blueGrey,
- double minWidth = 60,
- double maxWidth = 270,
- Duration animationDuration = const Duration(milliseconds: 300),
Implementation
const Sidebar({
Key? key,
required this.controller,
this.backgroundColor = const Color(0xFF263238),
this.selectedColor = Colors.amber,
this.unselectedColor = Colors.white70,
this.hoverColor = Colors.blueGrey,
this.minWidth = 60,
this.maxWidth = 270,
this.animationDuration = const Duration(milliseconds: 300),
}) : super(key: key);