StreamMessageComposerEditMessageAttachmentThemeData class
Theme data for customizing StreamMessageComposerEditMessageAttachment widgets.
Descendant widgets obtain their values from StreamMessageComposerEditMessageAttachmentTheme.of. All properties are null by default, with fallback values applied by DefaultStreamMessageComposerEditMessageAttachment — a brand-tinted background and indicator from the outgoing palette, with neutral text.
{@tool snippet}
Customize edit-message attachment styling globally via StreamTheme:
StreamTheme(
messageComposerEditMessageAttachmentTheme:
StreamMessageComposerEditMessageAttachmentThemeData(
indicatorColor: Colors.green,
),
)
{@end-tool}
See also:
- StreamMessageComposerEditMessageAttachmentTheme, for overriding theme in a widget subtree.
- StreamMessageComposerEditMessageAttachment, the widget that uses this theme data.
- Annotations
-
- @themeGen
- @immutable
Constructors
- StreamMessageComposerEditMessageAttachmentThemeData({Color? backgroundColor, Color? indicatorColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, OutlinedBorder? thumbnailShape, BorderSide? thumbnailSide, Size? thumbnailSize})
-
Creates composer edit-message attachment theme data with optional overrides.
const
Properties
- backgroundColor → Color?
-
Background fill color of the edit-message preview card.
final
- canMerge → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor → Color?
-
Color of the leading indicator bar.
final
- padding → EdgeInsetsGeometry?
-
Padding around the preview's content row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitleTextStyle → TextStyle?
-
Text style for the preview subtitle (the message body being edited).
final
- thumbnailShape → OutlinedBorder?
-
Outer shape of the trailing thumbnail.
final
- thumbnailSide → BorderSide?
-
Border side drawn around the trailing thumbnail.
final
- thumbnailSize → Size?
-
Dimensions of the trailing thumbnail.
final
- titleTextStyle → TextStyle?
-
Text style for the preview title (typically the localized "Edit message" label).
final
Methods
-
copyWith(
{Color? backgroundColor, Color? indicatorColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, OutlinedBorder? thumbnailShape, BorderSide? thumbnailSide, Size? thumbnailSize}) → StreamMessageComposerEditMessageAttachmentThemeData -
inherited
-
merge(
StreamMessageComposerEditMessageAttachmentThemeData? other) → StreamMessageComposerEditMessageAttachmentThemeData -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lerp(
StreamMessageComposerEditMessageAttachmentThemeData? a, StreamMessageComposerEditMessageAttachmentThemeData? b, double t) → StreamMessageComposerEditMessageAttachmentThemeData? - Linearly interpolate between two StreamMessageComposerEditMessageAttachmentThemeData objects.