ForegroundBuilder typedef

ForegroundBuilder = Widget Function(BuildContext context, CameraController? controller)

Build the foreground/overlay widget with the given CameraValue. 根据给定的 CameraValue 构建自定义的前景 widget

The controller will be null until initialized. 在 CameraController 完成初始化前,controller 将为空。

Implementation

typedef ForegroundBuilder = Widget Function(
  BuildContext context,
  CameraController? controller,
);