ShareDialog constructor

ShareDialog({
  1. required BuildContext context,
  2. required String titleText,
  3. String? descText,
  4. String? separatorText,
  5. required List<int> shareChannels,
  6. ShareDialogItemClickCallBack? clickCallBack,
  7. ShareDialogGetCustomShareItemTitle? getCustomChannelTitle,
  8. ShareDialogGetCustomShareItemIcon? getCustomChannelWidget,
  9. Color titleColor = const Color(0xff222222),
  10. Color descColor = const Color(0xff666666),
  11. Color shareTextColor = const Color(0xff999999),
  12. Color separatorLineColor = const Color(0xfff0f0f0),
  13. 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);
}