SettingBar constructor

const SettingBar({
  1. Key? key,
  2. List<SettingBarItem>? items,
  3. EdgeInsetsGeometry itemPadding = const EdgeInsets.only(left: 15, right: 8, top: 10, bottom: 10),
  4. EdgeInsetsGeometry iconMargin = const EdgeInsets.only(right: 8),
  5. EdgeInsetsGeometry? textPadding,
  6. EdgeInsets secondaryPadding = const EdgeInsets.only(left: 6, right: 6),
  7. EdgeInsetsGeometry? markPadding,
  8. EdgeInsetsGeometry? markIconMargin,
  9. Color? textColor,
  10. double? textSize,
  11. bool? textBold,
  12. Color? secondaryColor,
  13. double? secondarySize,
  14. bool? secondaryBold,
  15. Color? markColor,
  16. double? markSize,
  17. bool? markBold,
  18. Color backgroundColor = Colors.white,
  19. String backgroundImage = "",
  20. BoxFit? backgroundImageFit,
  21. EdgeInsetsGeometry? margin,
  22. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)),
  23. Color borderColor = const Color(0xffe5e5e5),
  24. double borderWidth = 0.8,
  25. SettingBarItemClick? itemClick,
  26. bool isVisibilityDivider = true,
  27. Color dividerColor = const Color(0xffd1d1d1),
  28. double dividerHeight = 1,
  29. EdgeInsetsGeometry dividerPadding = const EdgeInsets.only(left: 10, right: 10),
})

Implementation

const SettingBar(
    {Key? key,
    this.items,
    this.itemPadding = const EdgeInsets.only(left: 15, right: 8, top: 10, bottom: 10),
    this.iconMargin = const EdgeInsets.only(right: 8),
    this.textPadding,
    this.secondaryPadding = const EdgeInsets.only(left: 6, right: 6),
    this.markPadding,
    this.markIconMargin,
    this.textColor,
    this.textSize,
    this.textBold,
    this.secondaryColor,
    this.secondarySize,
    this.secondaryBold,
    this.markColor,
    this.markSize,
    this.markBold,
    this.backgroundColor = Colors.white,
    this.backgroundImage = "",
    this.backgroundImageFit,
    this.margin,
    this.borderRadius = const BorderRadius.all(Radius.circular(8)),
    this.borderColor = const Color(0xffe5e5e5),
    this.borderWidth = 0.8,
    this.itemClick,
    this.isVisibilityDivider = true,
    this.dividerColor = const Color(0xffd1d1d1),
    this.dividerHeight = 1,
    this.dividerPadding = const EdgeInsets.only(left: 10, right: 10)})
    : super(key: key);