BasicTheme class

Theme configuration for Basic layout widgets.

Defines default alignment, spacing, and padding properties for Basic layout components. These properties control how leading, trailing, title, subtitle, and content elements are positioned and spaced.

Inheritance

Constructors

BasicTheme({AlignmentGeometry? leadingAlignment, AlignmentGeometry? trailingAlignment, AlignmentGeometry? titleAlignment, AlignmentGeometry? subtitleAlignment, AlignmentGeometry? contentAlignment, double? contentSpacing, double? titleSpacing, MainAxisAlignment? mainAxisAlignment, EdgeInsetsGeometry? padding})
Creates a BasicTheme.
const

Properties

contentAlignment AlignmentGeometry?
Alignment for the content widget.
final
contentSpacing double?
Spacing between content elements.
final
hashCode int
The hash code for this object.
no setteroverride
leadingAlignment AlignmentGeometry?
Alignment for the leading widget.
final
mainAxisAlignment MainAxisAlignment?
Main axis alignment for the overall layout.
final
padding EdgeInsetsGeometry?
Padding around the entire Basic widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleAlignment AlignmentGeometry?
Alignment for the subtitle widget.
final
titleAlignment AlignmentGeometry?
Alignment for the title widget.
final
titleSpacing double?
Spacing between title and subtitle.
final
trailingAlignment AlignmentGeometry?
Alignment for the trailing widget.
final

Methods

copyWith({ValueGetter<AlignmentGeometry?>? leadingAlignment, ValueGetter<AlignmentGeometry?>? trailingAlignment, ValueGetter<AlignmentGeometry?>? titleAlignment, ValueGetter<AlignmentGeometry?>? subtitleAlignment, ValueGetter<AlignmentGeometry?>? contentAlignment, ValueGetter<double?>? contentSpacing, ValueGetter<double?>? titleSpacing, ValueGetter<MainAxisAlignment?>? mainAxisAlignment, ValueGetter<EdgeInsetsGeometry?>? padding}) BasicTheme
Creates a copy of this theme with the given fields replaced.
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.
override