buildBody method

Widget buildBody(
  1. BuildContext context
)

Implementation

Widget buildBody(BuildContext context) {
  return LayoutBuilder(
    builder: (BuildContext context, BoxConstraints constraints) => Stack(
      fit: StackFit.expand,
      alignment: Alignment.center,
      children: <Widget>[
        ExcludeSemantics(
          child: buildInitializeWrapper(
            builder: (CameraValue v, Widget? w) => buildCameraPreview(
              context: context,
              orientation: v.deviceOrientation,
              constraints: constraints,
            ),
          ),
        ),
        if (pickerConfig.enableSetExposure)
          buildExposureDetector(context, constraints),
        buildInitializeWrapper(
          builder: (CameraValue v, _) => buildFocusingPoint(
            cameraValue: v,
            constraints: constraints,
          ),
        ),
        buildForegroundBody(context, constraints),
        if (pickerConfig.foregroundBuilder != null)
          Positioned.fill(
            child: pickerConfig.foregroundBuilder!(context, innerController),
          ),
      ],
    ),
  );
}