KiteSplitLayout constructor

const KiteSplitLayout({
  1. required Widget sidebar,
  2. required Widget content,
  3. double sidebarWidth = 280,
  4. double mediumSidebarWidth = 240,
  5. double minContentWidth = 320,
  6. double gap = Dimensions.s24,
  7. KiteSidebarPosition sidebarPosition = KiteSidebarPosition.start,
  8. bool sidebarScrollable = false,
  9. bool contentScrollable = true,
  10. Key? key,
})

Implementation

const KiteSplitLayout({
  required this.sidebar,
  required this.content,
  this.sidebarWidth = 280,
  this.mediumSidebarWidth = 240,
  this.minContentWidth = 320,
  this.gap = Dimensions.s24,
  this.sidebarPosition = KiteSidebarPosition.start,
  this.sidebarScrollable = false,
  this.contentScrollable = true,
  super.key,
}) : assert(sidebarWidth > 0, 'sidebarWidth must be greater than zero.'),
     assert(
       mediumSidebarWidth > 0,
       'mediumSidebarWidth must be greater than zero.',
     ),
     assert(
       minContentWidth > 0,
       'minContentWidth must be greater than zero.',
     ),
     assert(gap >= 0, 'gap cannot be negative.');