showAnnouncementRule static method
void
showAnnouncementRule({
- required BuildContext context,
- required dynamic onRightButtonClick(),
Implementation
static void showAnnouncementRule({
required BuildContext context,
required Function() onRightButtonClick,
}) {
final ApLocalizations ap = ApLocalizations.of(context);
showDialog(
context: context,
builder: (BuildContext context) => YesNoDialog(
title: ap.newsRuleTitle,
contentWidget: SelectableText.rich(
TextSpan(
style: TextStyle(color: ApTheme.of(context).grey, fontSize: 16.0),
children: <TextSpan>[
TextSpan(
text: ap.newsRuleDescription1,
style: const TextStyle(fontWeight: FontWeight.normal),
),
TextSpan(
text: ap.newsRuleDescription2,
style: const TextStyle(fontWeight: FontWeight.bold),
),
TextSpan(
text: ap.newsRuleDescription3,
style: const TextStyle(fontWeight: FontWeight.normal),
),
],
),
),
leftActionText: ap.cancel,
rightActionText: ap.contactFansPage,
leftActionFunction: () {},
rightActionFunction: onRightButtonClick,
),
);
}