settingsAction property

Widget settingsAction

////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ///////////////////// Just a line breaker //////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Settings action section widget. 设置操作区

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

Implementation

/// Settings action section widget.
/// 设置操作区
///
/// This displayed at the top of the screen.
/// 该区域显示在屏幕上方。
Widget get settingsAction {
  return _initializeWrapper(
    builder: (CameraValue v, __) {
      if (v.isRecordingVideo) {
        return const SizedBox.shrink();
      }
      return Padding(
        padding: const EdgeInsets.symmetric(horizontal: 12.0),
        child: Row(
          children: <Widget>[
            if (cameras.length > 1) switchCamerasButton,
            const Spacer(),
            switchFlashesButton(v),
          ],
        ),
      );
    },
  );
}