|
|
|
@ -10,7 +10,9 @@ class QuillDialogTheme with Diagnosticable { |
|
|
|
|
this.shape, |
|
|
|
|
this.buttonStyle, |
|
|
|
|
this.linkDialogConstraints, |
|
|
|
|
this.imageDialogConstraints, |
|
|
|
|
this.linkDialogPadding = const EdgeInsets.all(16), |
|
|
|
|
this.mediaDialogConstraints, |
|
|
|
|
this.mediaDialogPadding = const EdgeInsets.all(16), |
|
|
|
|
this.isWrappable = false, |
|
|
|
|
this.runSpacing = 8.0, |
|
|
|
|
}) : assert(runSpacing >= 0); |
|
|
|
@ -34,8 +36,14 @@ class QuillDialogTheme with Diagnosticable { |
|
|
|
|
/// Constrains for [LinkStyleDialog]. |
|
|
|
|
final BoxConstraints? linkDialogConstraints; |
|
|
|
|
|
|
|
|
|
/// Constrains for [EmbedImageDialog]. |
|
|
|
|
final BoxConstraints? imageDialogConstraints; |
|
|
|
|
/// The padding for content of [LinkStyleDialog]. |
|
|
|
|
final EdgeInsetsGeometry linkDialogPadding; |
|
|
|
|
|
|
|
|
|
/// Constrains for [MediaLinkDialog]. |
|
|
|
|
final BoxConstraints? mediaDialogConstraints; |
|
|
|
|
|
|
|
|
|
/// The padding for content of [MediaLinkDialog]. |
|
|
|
|
final EdgeInsetsGeometry mediaDialogPadding; |
|
|
|
|
|
|
|
|
|
/// Customizes this button's appearance. |
|
|
|
|
final ButtonStyle? buttonStyle; |
|
|
|
@ -70,8 +78,7 @@ class QuillDialogTheme with Diagnosticable { |
|
|
|
|
buttonStyle: buttonStyle ?? this.buttonStyle, |
|
|
|
|
linkDialogConstraints: |
|
|
|
|
linkDialogConstraints ?? this.linkDialogConstraints, |
|
|
|
|
imageDialogConstraints: |
|
|
|
|
imageDialogConstraints ?? this.imageDialogConstraints, |
|
|
|
|
mediaDialogConstraints: imageDialogConstraints ?? mediaDialogConstraints, |
|
|
|
|
isWrappable: isWrappable ?? this.isWrappable, |
|
|
|
|
runSpacing: runSpacing ?? this.runSpacing, |
|
|
|
|
); |
|
|
|
@ -89,7 +96,7 @@ class QuillDialogTheme with Diagnosticable { |
|
|
|
|
other.shape == shape && |
|
|
|
|
other.buttonStyle == buttonStyle && |
|
|
|
|
other.linkDialogConstraints == linkDialogConstraints && |
|
|
|
|
other.imageDialogConstraints == imageDialogConstraints && |
|
|
|
|
other.mediaDialogConstraints == mediaDialogConstraints && |
|
|
|
|
other.isWrappable == isWrappable && |
|
|
|
|
other.runSpacing == runSpacing; |
|
|
|
|
} |
|
|
|
@ -102,7 +109,7 @@ class QuillDialogTheme with Diagnosticable { |
|
|
|
|
shape, |
|
|
|
|
buttonStyle, |
|
|
|
|
linkDialogConstraints, |
|
|
|
|
imageDialogConstraints, |
|
|
|
|
mediaDialogConstraints, |
|
|
|
|
isWrappable, |
|
|
|
|
runSpacing, |
|
|
|
|
); |
|
|
|
|