shareTextCEWithLinkCCG static method
dynamic
shareTextCEWithLinkCCG({
Implementation
static shareTextCEWithLinkCCG(
{required ce, required int index}) async {
// https://www.chant.rezo509.com/mobile/MobileChantViewDetails.aspx?ID=207&tc=FR&ri=3&IDG=12
String linkWeb =
'${Constant.urlWebSiteCCG}/mobile/MobileChantViewDetails.aspx?ID=${ce.noChant}&tc=${ce.typeChant}&ri=$index&IDG=${ce.groupeChantantId}';
String msg = ce.titre; //\n\n${ce.audioPath}';
String data = CleanData.UNCODE_UTF_8(CleanData.getTextFromHtml(
CleanData.ReplaceHtmlBreakToSlashN(ce.contenu)));
msg +=
'\n\n${(data.length >= 150) ? '${data.substring(0, 150)}...' : data}';
msg +=
'\n\n$linkWeb \n\n${Constant.appName}\n${Constant.urlAppCCGMobileOnly()}';
Share.share(msg, subject: 'label_Partager'.tr);
}