showHintDialog method

void showHintDialog(
  1. PadlockHint hint, {
  2. String? dialogTitle,
})

Shows the hint dialog.

Implementation

void showHintDialog(PadlockHint hint, {String? dialogTitle}) {
  showDialog(
    context: context,
    builder: (context) => EscapeGameAlertDialog.oneChild(
      title: dialogTitle ?? hint.title,
      child: Text(
        hint.text,
        textAlign: TextAlign.center,
        style: const TextStyle(
          fontStyle: FontStyle.italic,
        ),
      ),
    ),
  );
}