tipsTextWidget method

Widget tipsTextWidget(
  1. CameraController? controller
)

Text widget for shooting tips.

Implementation

Widget tipsTextWidget(CameraController? controller) {
  return AnimatedOpacity(
    duration: recordDetectDuration,
    opacity: controller?.value.isRecordingVideo == true ? 0 : 1,
    child: Padding(
      padding: const EdgeInsets.symmetric(
        vertical: 20.0,
      ),
      child: Text(
        widget.enableRecording
            ? 'Tap to take photo. Long press to record video.'.tr
            : 'Tap to take photo.'.tr,
        style: const TextStyle(fontSize: 15.0),
      ),
    ),
  );
}