buildOverlayContent method

Widget buildOverlayContent(
  1. BuildContext context,
  2. OverlayContent content
)

Implementation

Widget buildOverlayContent(BuildContext context, OverlayContent content) {
  if(kIsWeb) {
    // The overlay exclusion clipper is not correctly rendered on the web
    return _buildOverlayContentWeb(context, content);
  }
  return Stack(
    children: [
      Positioned.fill(
        child: AbsorbPointer(
          child: Container(color: Colors.transparent),
        ),
      ),
      ClipPath(
        clipper: ExclusionClipper(content.exclusionRect),
        child: BackdropFilter(
          filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0),
          child: Container(
            width: SizeConfig.screenWidth(context),
            height: SizeConfig.screenHeight(context),
            color: Colors.black.withOpacity(0.5),
          ),
        ),
      ),
      _buildTutorialText(content),
      _buildNextButton(content),
    ],
  );
}