AwesomeTopActions constructor

AwesomeTopActions({
  1. Key? key,
  2. required CameraState state,
  3. List<Widget>? children,
  4. EdgeInsets padding = const EdgeInsets.only(left: 30, right: 30, top: 16),
})

Implementation

AwesomeTopActions({
  super.key,
  required this.state,
  List<Widget>? children,
  this.padding = const EdgeInsets.only(left: 30, right: 30, top: 16),
}) : children = children ??
          (state is VideoRecordingCameraState
              ? [const SizedBox.shrink()]
              : [
                  AwesomeFlashButton(state: state),
                  if (state is PhotoCameraState)
                    AwesomeAspectRatioButton(state: state),
                  if (state is PhotoCameraState)
                    AwesomeLocationButton(state: state),
                ]);