|
|
|
import 'package:flutter/widgets.dart' show Color;
|
|
|
|
import 'package:flutter_quill/flutter_quill.dart';
|
|
|
|
|
|
|
|
import '../../../embeds/others/camera_button/camera_types.dart';
|
|
|
|
|
|
|
|
class QuillToolbarCameraButtonExtraOptions
|
|
|
|
extends QuillToolbarBaseButtonExtraOptions {
|
|
|
|
const QuillToolbarCameraButtonExtraOptions({
|
|
|
|
required super.controller,
|
|
|
|
required super.context,
|
|
|
|
required super.onPressed,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
class QuillToolbarCameraButtonOptions extends QuillToolbarBaseButtonOptions<
|
|
|
|
QuillToolbarCameraButtonOptions, QuillToolbarCameraButtonExtraOptions> {
|
|
|
|
const QuillToolbarCameraButtonOptions({
|
|
|
|
this.cameraConfigurations = const QuillToolbarCameraConfigurations(),
|
|
|
|
super.iconSize,
|
|
|
|
super.iconButtonFactor,
|
|
|
|
this.fillColor,
|
|
|
|
super.iconData,
|
|
|
|
super.afterButtonPressed,
|
|
|
|
super.tooltip,
|
|
|
|
super.iconTheme,
|
|
|
|
super.childBuilder,
|
|
|
|
});
|
|
|
|
|
|
|
|
final Color? fillColor;
|
|
|
|
|
|
|
|
final QuillToolbarCameraConfigurations cameraConfigurations;
|
|
|
|
}
|