shootingActions method

Widget shootingActions(
  1. BuildContext context,
  2. CameraController? controller,
  3. BoxConstraints constraints
)

Shooting action section widget. 拍照操作区

This displayed at the top of the screen. 该区域显示在屏幕下方。

Implementation

Widget shootingActions(
  BuildContext context,
  CameraController? controller,
  BoxConstraints constraints,
) {
  return SizedBox(
    height: 118,
    child: Row(
      children: <Widget>[
        Expanded(
          child: controller?.value.isRecordingVideo == true
              ? const SizedBox.shrink()
              : Center(child: backButton(context, constraints)),
        ),
        Expanded(child: Center(child: shootingButton(constraints))),
        const Spacer(),
      ],
    ),
  );
}