ChangelogStyle class
Visual configuration for ChangelogView and WhatsNewSheet.
- Annotations
Constructors
- ChangelogStyle({Color? cardColor, TextStyle? versionStyle, TextStyle? dateStyle, TextStyle? bulletStyle, Color? badgeColor, TextStyle? badgeTextStyle, double? spacing, EdgeInsetsGeometry? cardPadding, String badgeText = 'NEW', String showOlderLabel = 'Show older', String showFewerLabel = 'Show fewer', TextStyle? categoryStyle})
-
Creates a style; unset fields fall back to the ambient ThemeData.
const
Properties
- badgeColor → Color?
-
"New" badge background color.
final
- badgeText → String
-
Badge text for highlighted versions. Defaults to
NEW.final - badgeTextStyle → TextStyle?
-
"New" badge text style.
final
- bulletStyle → TextStyle?
-
Bullet text style.
final
- cardColor → Color?
-
Card background; defaults to
surfaceContainerLow.final - cardPadding → EdgeInsetsGeometry?
-
Inner card padding.
Padding inside each version card. Defaults to
PrismTokens.spaceMd.final - categoryStyle → TextStyle?
-
Category header text style (Added / Fixed / …).
final
- dateStyle → TextStyle?
-
Date text style.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFewerLabel → String
-
Label for the "show fewer" toggle.
final
- showOlderLabel → String
-
Label for the "show older" toggle.
final
- spacing → double?
-
Vertical gap between version cards. Defaults to
PrismTokens.spaceSm + 4.final - versionStyle → TextStyle?
-
Version number text style.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
BuildContext context) → ChangelogStyle - Returns a copy with unset fields filled from PrismTokens.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited