show<T> static method

Future<T?> show<T>(
  1. BuildContext context, {
  2. IntroductionViewStage initial = IntroductionViewStage.oneTime,
})

Displays an IntroductionView wrapped in a ModalPopup.

Implementation

static Future<T?> show<T>(
  BuildContext context, {
  IntroductionViewStage initial = IntroductionViewStage.oneTime,
}) {
  final style = Theme.of(context).style;

  return ModalPopup.show(
    context: context,
    background:
        initial == IntroductionViewStage.link
            ? style.colors.background
            : null,
    child: IntroductionView(initial: initial),
  );
}