AwesomeCameraLayout constructor
AwesomeCameraLayout({
- Key? key,
- required CameraState state,
- OnMediaTap? onMediaTap,
- Widget? middleContent,
- Widget? topActions,
- 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);