showInfoDialog function
Future<void>
showInfoDialog(
- BuildContext context, {
- String? message,
- Color? barrierColor = Colors.black54,
- required AppTheme theme,
- void onRateAppPressed()?,
- void onSendFeedbackPressed()?,
Shows an informational dialog.
message
is the displayed message.
theme
controls dialog theming.
Optional callbacks are for actions like rating or sharing the app.
Implementation
Future<void> showInfoDialog(
BuildContext context, {
String? message,
Color? barrierColor = Colors.black54,
required AppTheme theme,
void Function()? onRateAppPressed,
void Function()? onShareAppPressed,
void Function()? onSendFeedbackPressed,
}) {
return showDialogWithAnimation<void>(
barrierColor: barrierColor,
context: context,
child: InfoDialog(
theme: theme,
message: message,
onRateAppPressed: onRateAppPressed ?? NavigatorUtils.openPlayStore,
onShareAppPressed: onShareAppPressed ?? NavigatorUtils.shareApp,
onSendFeedbackPressed: onSendFeedbackPressed ?? NavigatorUtils.sendEmailFeedback,
),
);
}