ShareDialog constructor
ShareDialog({
- required BuildContext context,
- required String titleText,
- String? descText,
- String? separatorText,
- ShareDialogItemClickCallBack? clickCallBack,
- ShareDialogGetCustomShareItemTitle? getCustomChannelTitle,
- ShareDialogGetCustomShareItemIcon? getCustomChannelWidget,
- Color titleColor = const Color(0xff222222),
- Color descColor = const Color(0xff666666),
- Color separatorLineColor = const Color(0xfff0f0f0),
- DialogConfig? themeData,
Implementation
ShareDialog({
required this.context,
required this.titleText,
this.descText,
this.separatorText,
required this.shareChannels,
this.clickCallBack,
this.getCustomChannelTitle,
this.getCustomChannelWidget,
this.titleColor = const Color(0xff222222),
this.descColor = const Color(0xff666666),
this.shareTextColor = const Color(0xff999999),
this.separatorLineColor = const Color(0xfff0f0f0),
this.themeData,
}) {
themeData ??= DialogConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.dialogConfig
.merge(themeData);
}