present method

  1. @override
Future<bool> present(
  1. BuildContext context,
  2. DiscoveryTip<Object> tip,
  3. DiscoveryContext ctx
)
override

Return true if the presentation actually rendered. A false return (e.g. a coach mark whose anchor wasn't mounted in time) means the tip should not be marked as seen and the emit loop may continue.

Implementation

@override
Future<bool> present(
  BuildContext context,
  DiscoveryTip tip,
  DiscoveryContext ctx,
) async {
  await showDialog<void>(
    context: context,
    barrierDismissible: barrierDismissible,
    builder: (dialogCtx) => build(dialogCtx, ctx),
  );
  return true;
}