StreamMessageComposerLinkPreviewAttachmentThemeData class
Theme data for customizing StreamMessageComposerLinkPreviewAttachment widgets.
Descendant widgets obtain their values from StreamMessageComposerLinkPreviewAttachmentTheme.of. All properties are null by default, with fallback values applied by DefaultStreamMessageComposerLinkPreviewAttachment.
{@tool snippet}
Customize link preview styling globally via StreamTheme:
StreamTheme(
messageComposerLinkPreviewAttachmentTheme:
StreamMessageComposerLinkPreviewAttachmentThemeData(
backgroundColor: Colors.amber.shade50,
titleTextStyle: TextStyle(fontWeight: FontWeight.w700),
),
)
{@end-tool}
See also:
- StreamMessageComposerLinkPreviewAttachmentTheme, for overriding theme in a widget subtree.
- StreamMessageComposerLinkPreviewAttachment, the widget that uses this theme data.
- Annotations
-
- @themeGen
- @immutable
Constructors
- StreamMessageComposerLinkPreviewAttachmentThemeData({Color? backgroundColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, OutlinedBorder? thumbnailShape, BorderSide? thumbnailSide, Size? thumbnailSize})
-
Creates composer link preview attachment theme data with optional
overrides.
const
Properties
- backgroundColor → Color?
-
Background fill color of the link preview card.
final
- canMerge → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsetsGeometry?
-
Padding around the link preview's content row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitleTextStyle → TextStyle?
-
Text style for the link preview subtitle and URL.
final
- thumbnailShape → OutlinedBorder?
-
Outer shape of the leading thumbnail.
final
- thumbnailSide → BorderSide?
-
Border side drawn around the leading thumbnail.
final
- thumbnailSize → Size?
-
Dimensions of the leading thumbnail.
final
- titleTextStyle → TextStyle?
-
Text style for the link preview title.
final
Methods
-
copyWith(
{Color? backgroundColor, TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, OutlinedBorder? thumbnailShape, BorderSide? thumbnailSide, Size? thumbnailSize}) → StreamMessageComposerLinkPreviewAttachmentThemeData -
inherited
-
merge(
StreamMessageComposerLinkPreviewAttachmentThemeData? other) → StreamMessageComposerLinkPreviewAttachmentThemeData -
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(
StreamMessageComposerLinkPreviewAttachmentThemeData? a, StreamMessageComposerLinkPreviewAttachmentThemeData? b, double t) → StreamMessageComposerLinkPreviewAttachmentThemeData? - Linearly interpolate between two StreamMessageComposerLinkPreviewAttachmentThemeData objects.