CommonActionSheet constructor
CommonActionSheet({
- Key? key,
- required List<
CommonActionSheetItem> actions, - String? title,
- Widget? titleWidget,
- String? cancelTitle,
- CommonActionSheetItemClickCallBack? clickCallBack,
- Color? separatorLineColor,
- Color spaceColor = const Color(0xfff8f8f8),
- int maxTitleLines = 2,
- double maxSheetHeight = 0,
- CommonActionSheetItemClickInterceptor? onItemClickInterceptor,
- 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);
}