StreamMessageComposerFileAttachmentThemeData class

Theme data for customizing StreamMessageComposerFileAttachment widgets.

Descendant widgets obtain their values from StreamMessageComposerFileAttachmentTheme.of. All properties are null by default, with fallback values applied by DefaultStreamMessageComposerFileAttachment.

{@tool snippet}

Customize file attachment typography globally via StreamTheme:

StreamTheme(
  messageComposerFileAttachmentTheme:
      StreamMessageComposerFileAttachmentThemeData(
    titleTextStyle: TextStyle(fontWeight: FontWeight.w700),
  ),
)

{@end-tool}

See also:

Annotations

Constructors

StreamMessageComposerFileAttachmentThemeData({TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, double? spacing})
Creates composer file attachment theme data with optional overrides.
const

Properties

canMerge bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsetsGeometry?
Padding around the file attachment's content row.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double?
Horizontal space between the file type icon and the title/subtitle column.
final
subtitleTextStyle TextStyle?
Text style for the file attachment subtitle.
final
titleTextStyle TextStyle?
Text style for the file attachment title.
final

Methods

copyWith({TextStyle? titleTextStyle, TextStyle? subtitleTextStyle, EdgeInsetsGeometry? padding, double? spacing}) StreamMessageComposerFileAttachmentThemeData
inherited
merge(StreamMessageComposerFileAttachmentThemeData? other) StreamMessageComposerFileAttachmentThemeData
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