SideBar constructor
const
SideBar({
- Key? key,
- required List<
AdminMenuItem> items, - required String selectedRoute,
- void onSelected(
- AdminMenuItem item
- double width = 240.0,
- Color? iconColor,
- Color? activeIconColor,
- TextStyle textStyle = const TextStyle(color: Color(0xFF337ab7), fontSize: 12),
- TextStyle activeTextStyle = const TextStyle(color: Color(0xFF337ab7), fontSize: 12),
- Color backgroundColor = const Color(0xFFEEEEEE),
- Color activeBackgroundColor = const Color(0xFFE7E7E7),
- Color borderColor = const Color(0xFFE7E7E7),
- ScrollController? scrollController,
- Widget? header,
Implementation
const SideBar({
Key? key,
required this.items,
required this.selectedRoute,
this.onSelected,
this.width = 240.0,
this.iconColor,
this.activeIconColor,
this.textStyle = const TextStyle(
color: Color(0xFF337ab7),
fontSize: 12,
),
this.activeTextStyle = const TextStyle(
color: Color(0xFF337ab7),
fontSize: 12,
),
this.backgroundColor = const Color(0xFFEEEEEE),
this.activeBackgroundColor = const Color(0xFFE7E7E7),
this.borderColor = const Color(0xFFE7E7E7),
this.scrollController,
this.header,
this.footer,
}) : super(key: key);