Nautics constructor

const Nautics({
  1. Key? key,
  2. required List<TabItem> children,
  3. required ValueChanged<int> onChange,
  4. int initialIndex = 0,
  5. Widget? header,
  6. Widget? footer,
  7. Color? nauticsColor,
  8. Color? selectedColor,
  9. Color? unSelectedColor,
  10. Decoration? collapsedNauticsDecoration,
  11. Decoration? expandedNauticsDecoration,
  12. double collapsedWidth = 60,
  13. double childIndentation = 5,
  14. double expandedWidth = 250,
  15. bool isCollapsed = true,
  16. bool? isFloating = true,
  17. bool isConvertible = true,
  18. CrossAxisAlignment crossAxisAlignmentCollapsedForm = CrossAxisAlignment.center,
  19. CrossAxisAlignment crossAxisAlignmentExpandedForm = CrossAxisAlignment.center,
  20. MainAxisAlignment mainAxisAlignmentCollapsedForm = MainAxisAlignment.start,
  21. MainAxisAlignment mainAxisAlignmentExpandedForm = MainAxisAlignment.start,
  22. Widget? selectedTrailingIcon = const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12),
  23. Widget? unSelectedTrailingIcon = const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12),
})

Implementation

const Nautics({
  Key? key,
  required this.children,
  required this.onChange,
  this.initialIndex = 0,
  this.header,
  this.footer,
  this.nauticsColor,
  this.selectedColor,
  this.unSelectedColor,
  this.collapsedNauticsDecoration,
  this.expandedNauticsDecoration,
  this.collapsedWidth = 60,
  this.childIndentation = 5,
  this.expandedWidth = 250,
  this.isCollapsed = true,
  this.isFloating = true,
  this.isConvertible = true,
  this.crossAxisAlignmentCollapsedForm = CrossAxisAlignment.center,
  this.crossAxisAlignmentExpandedForm = CrossAxisAlignment.center,
  this.mainAxisAlignmentCollapsedForm = MainAxisAlignment.start,
  this.mainAxisAlignmentExpandedForm = MainAxisAlignment.start,
  this.selectedTrailingIcon =
      const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12),
  this.unSelectedTrailingIcon =
      const Icon(CupertinoIcons.arrow_up_arrow_down, size: 12),
}) : super(key: key);