showAppFeedbackSubmitedDialog function

Future<void> showAppFeedbackSubmitedDialog(
  1. BuildContext context
)

Implementation

Future<void> showAppFeedbackSubmitedDialog(
  BuildContext context,
) {
  Navigator.of(context).pop();

  return showDialog(
    context: context,
    builder: (context) => Center(
      child: AlertDialog(
        actionsAlignment: MainAxisAlignment.spaceAround,
        title: Center(
          child: Text(
            '🎉',
            style: context.textTheme.headlineLarge,
          ),
        ),
        content: Text(
          context.sharedL10n.yourFeedbackHasBeenSubmitted,
          style: context.textTheme.bodyLarge,
        ),
        actions: [
          TextButton(
            onPressed: () async {
              Navigator.of(context).pop();
            },
            child: Text(
              context.sharedL10n.close,
              style: context.textTheme.bodyLarge
                  ?.copyWith(color: context.colorScheme.primary),
            ),
          ),
        ],
      ),
    ),
  );
}