buildChild method

Widget buildChild(
  1. BuildContext context
)

Builds the inside of the video feed. Either a video frame or an error message.

Implementation

Widget buildChild(BuildContext context) => isReady
  ? Row(
    children: [
      AnimatedContainer(
        duration: const Duration(milliseconds: 250),
        height: double.infinity,
        width: isOpened ? 200 : 0,
        child: VideoSettingsWidget(
          id: data.id,
          details: data.details,
        ),
      ),
      Expanded(child: RawImage(image: imageLoader.image, fit: BoxFit.contain)),
    ],
  )
  : Center(child: Text(errorMessage, textAlign: TextAlign.center));