SettingBar constructor
const
SettingBar({
- Key? key,
- List<
SettingBarItem> ? items, - EdgeInsetsGeometry itemPadding = const EdgeInsets.only(left: 15, right: 8, top: 10, bottom: 10),
- EdgeInsetsGeometry iconMargin = const EdgeInsets.only(right: 8),
- EdgeInsetsGeometry? textPadding,
- EdgeInsets secondaryPadding = const EdgeInsets.only(left: 6, right: 6),
- EdgeInsetsGeometry? markPadding,
- EdgeInsetsGeometry? markIconMargin,
- Color? textColor,
- double? textSize,
- bool? textBold,
- Color? secondaryColor,
- double? secondarySize,
- bool? secondaryBold,
- Color? markColor,
- double? markSize,
- bool? markBold,
- Color backgroundColor = Colors.white,
- String backgroundImage = "",
- BoxFit? backgroundImageFit,
- EdgeInsetsGeometry? margin,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)),
- Color borderColor = const Color(0xffe5e5e5),
- double borderWidth = 0.8,
- SettingBarItemClick? itemClick,
- bool isVisibilityDivider = true,
- Color dividerColor = const Color(0xffd1d1d1),
- double dividerHeight = 1,
- 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);