SideBarLayout constructor

const SideBarLayout({
  1. Key? key,
  2. required String title,
  3. required List<SundaySideBarItemGroup> children,
  4. Color? backgroundColor,
  5. Color titleColor = Colors.black,
  6. Color itemTextColor = Colors.black,
  7. Color darkTitleColor = Colors.white,
  8. Color darkItemTextColor = Colors.white,
  9. Color itemBackgroundColor = const Color(0xffDFDEE5),
  10. Color darkItemBackgroundColor = const Color(0xff39383D),
  11. required String keyCollapsed,
  12. bool initialIsCollapsed = false,
  13. Color selectedItemTextColor = Colors.black,
  14. Color darkSelectedItemTextColor = Colors.white,
  15. required Style style,
})

Constructor for SideBarLayout, requiring a title and children.

Implementation

const SideBarLayout(
    {super.key,
    required this.title,
    required this.children,
    this.backgroundColor,
    this.titleColor = Colors.black,
    this.itemTextColor = Colors.black,
    this.darkTitleColor = Colors.white,
    this.darkItemTextColor = Colors.white,
    this.itemBackgroundColor = const Color(0xffDFDEE5),
    this.darkItemBackgroundColor = const Color(0xff39383D),
    required this.keyCollapsed,
    this.initialIsCollapsed = false,
    this.selectedItemTextColor = Colors.black,
    this.darkSelectedItemTextColor = Colors.white,
    required this.style});