AwesomeCameraLayout constructor

AwesomeCameraLayout({
  1. Key? key,
  2. required CameraState state,
  3. OnMediaTap? onMediaTap,
  4. Widget? middleContent,
  5. Widget? topActions,
  6. Widget? bottomActions,
})

Implementation

AwesomeCameraLayout({
  super.key,
  required this.state,
  OnMediaTap? onMediaTap,
  Widget? middleContent,
  Widget? topActions,
  Widget? bottomActions,
})  : middleContent = middleContent ??
          (Column(
            children: [
              const Spacer(),
              if (state is PhotoCameraState && state.hasFilters)
                AwesomeFilterWidget(state: state)
              else if (!kIsWeb && Platform.isAndroid)
                AwesomeZoomSelector(state: state),
              AwesomeCameraModeSelector(state: state),
            ],
          )),
      topActions = topActions ?? AwesomeTopActions(state: state),
      bottomActions = bottomActions ??
          AwesomeBottomActions(state: state, onMediaTap: onMediaTap);