SideBar constructor

const SideBar({
  1. Key? key,
  2. required List<AdminMenuItem> items,
  3. required String selectedRoute,
  4. void onSelected(
    1. AdminMenuItem item
    )?,
  5. double width = 240.0,
  6. Color? iconColor,
  7. Color? activeIconColor,
  8. TextStyle textStyle = const TextStyle(color: Color(0xFF337ab7), fontSize: 12),
  9. TextStyle activeTextStyle = const TextStyle(color: Color(0xFF337ab7), fontSize: 12),
  10. Color backgroundColor = const Color(0xFFEEEEEE),
  11. Color activeBackgroundColor = const Color(0xFFE7E7E7),
  12. Color borderColor = const Color(0xFFE7E7E7),
  13. ScrollController? scrollController,
  14. Widget? header,
  15. Widget? footer,
})

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);