TFormBuilder constructor

const TFormBuilder({
  1. Key? key,
  2. TFormBase? input,
  3. List<TFormField>? fields,
  4. List<TFormTab>? tabs,
  5. TFormType? formType,
  6. Axis tabAxis = Axis.horizontal,
  7. TTabController? tabController,
  8. dynamic initialTabValue,
  9. ValueChanged? onTabChanged,
  10. double? tabWidth,
  11. bool scrollableTabs = false,
  12. bool showTabNavigationButtons = true,
  13. bool tabInline = false,
  14. bool tabWrap = false,
  15. EdgeInsets? tabPadding,
  16. double tabSpacing = 2,
  17. double? tabIndicatorWidth,
  18. Color? tabSelectedColor,
  19. Color? tabUnselectedColor,
  20. Color? tabIndicatorColor,
  21. Color? tabBorderColor,
  22. Widget tabBuilder(
    1. BuildContext,
    2. TTab,
    3. bool,
    4. VoidCallback? ,
    )?,
  23. double gapX = 16.0,
  24. double gapY = 26.0,
  25. VoidCallback? onValueChanged,
  26. IconData? icon,
  27. String? label,
  28. String? description,
  29. bool initiallyExpanded = false,
  30. Widget? footer,
})

Creates a form builder.

Implementation

const TFormBuilder({
  super.key,
  this.input,
  this.fields,
  this.tabs,
  this.formType,
  this.tabAxis = Axis.horizontal,
  this.tabController,
  this.initialTabValue,
  this.onTabChanged,
  this.tabWidth,
  this.scrollableTabs = false,
  this.showTabNavigationButtons = true,
  this.tabInline = false,
  this.tabWrap = false,
  this.tabPadding,
  this.tabSpacing = 2,
  this.tabIndicatorWidth,
  this.tabSelectedColor,
  this.tabUnselectedColor,
  this.tabIndicatorColor,
  this.tabBorderColor,
  this.tabBuilder,
  this.gapX = 16.0,
  this.gapY = 26.0,
  this.onValueChanged,
  this.icon,
  this.label,
  this.description,
  this.initiallyExpanded = false,
  this.footer,
}) : assert(
       (input != null ? 1 : 0) + (fields != null ? 1 : 0) + (tabs != null ? 1 : 0) == 1,
       'Provide exactly one of "input", "fields", or "tabs".',
     );