MultiDataPicker constructor
MultiDataPicker({
- Key? key,
- required BuildContext context,
- required MultiDataPickerDelegate delegate,
- String title = "",
- TextStyle? titleTextStyle,
- TextStyle? confirmTextStyle,
- TextStyle? cancelTextStyle,
- List<
String> ? pickerTitles, - double? pickerTitleFontSize,
- Color? pickerTitleColor,
- double? textFontSize,
- Color? textColor,
- Color? textSelectedColor,
- ScrollBehavior? behavior,
- ConfirmButtonClick? confirmClick,
- MultiDataPickerCreateWidgetCallback? createItemWidget,
- PickerConfig? themeData,
- bool sync = true,
Implementation
MultiDataPicker(
{Key? key,
required this.context,
required this.delegate,
this.title = "",
this.titleTextStyle,
this.confirmTextStyle,
this.cancelTextStyle,
this.pickerTitles,
this.pickerTitleFontSize,
this.pickerTitleColor,
this.textFontSize,
this.textColor,
this.textSelectedColor,
this.behavior,
this.confirmClick,
this.createItemWidget,
this.themeData,
this.sync = true}) {
themeData ??= PickerConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.pickerConfig
.merge(themeData);
themeData = themeData!.merge(PickerConfig(
cancelTextStyle: BaseTextStyle.withStyle(cancelTextStyle),
confirmTextStyle: BaseTextStyle.withStyle(confirmTextStyle),
titleTextStyle: BaseTextStyle.withStyle(titleTextStyle),
itemTextStyle: BaseTextStyle(color: textColor, fontSize: textFontSize),
itemTextSelectedStyle:
BaseTextStyle(color: textSelectedColor, fontSize: textFontSize),
));
}