CommonActionSheet constructor

CommonActionSheet({
  1. Key? key,
  2. required List<CommonActionSheetItem> actions,
  3. String? title,
  4. Widget? titleWidget,
  5. String? cancelTitle,
  6. CommonActionSheetItemClickCallBack? clickCallBack,
  7. Color? separatorLineColor,
  8. Color spaceColor = const Color(0xfff8f8f8),
  9. int maxTitleLines = 2,
  10. double maxSheetHeight = 0,
  11. CommonActionSheetItemClickInterceptor? onItemClickInterceptor,
  12. ActionSheetConfig? themeData,
})

Implementation

CommonActionSheet({
  super.key,
  required this.actions,
  this.title,
  this.titleWidget,
  this.cancelTitle,
  this.clickCallBack,
  this.separatorLineColor,
  this.spaceColor = const Color(0xfff8f8f8),
  this.maxTitleLines = 2,
  this.maxSheetHeight = 0,
  this.onItemClickInterceptor,
  this.themeData,
}) {
  themeData ??= ActionSheetConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .actionSheetConfig
      .merge(themeData);
}