buildCaptureActions method
Widget
buildCaptureActions({
- required BuildContext context,
- required BoxConstraints constraints,
- CameraController? controller,
Capture action's widget. 拍照操作区
This displayed at the top of the screen. 该区域显示在屏幕下方。
Implementation
Widget buildCaptureActions({
required BuildContext context,
required BoxConstraints constraints,
CameraController? controller,
}) {
return SizedBox(
height: 118,
child: Row(
children: <Widget>[
if (controller?.value.isRecordingVideo != true)
Expanded(child: buildBackButton(context, constraints))
else
const Spacer(),
Expanded(
child: Center(
child: MergeSemantics(child: buildCaptureButton(constraints)),
),
),
const Spacer(),
],
),
);
}