ChangelogView class
Renders parsed ChangelogEntrys as beautiful version cards.
Pass your raw changelog markdown, or pre-parsed entries. Each version
becomes a card with the version, optional date/title, and its bullets.
Bullets keep their raw markdown (bold, links), so pair with
prism_markdown for rich rendering via bulletBuilder.
ChangelogView(changelog: myChangelogMarkdown)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ChangelogView
Constructors
-
ChangelogView({Key? key, String? changelog, List<
ChangelogEntry> ? entries, ChangelogStyle? style, bool collapsible = true, int initiallyExpandedCount = 3, Widget bulletBuilder(String bullet)?, String? highlightVersion}) -
Creates a changelog view.
const
Properties
- bulletBuilder → Widget Function(String bullet)?
-
Custom bullet renderer — receives the raw markdown bullet. Great fit:
(bullet) => PrismMarkdown(bullet).final - changelog → String?
-
Raw Keep-a-Changelog markdown. Mutually exclusive with entries.
final
- collapsible → bool
-
Whether versions beyond initiallyExpandedCount start collapsed
behind a "Show older" toggle.
final
-
entries
→ List<
ChangelogEntry> ? -
Pre-parsed entries. Mutually exclusive with changelog.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightVersion → String?
-
Version string highlighted with a "New" badge (e.g. the current app
version on a What's New screen).
final
- initiallyExpandedCount → int
-
Number of newest versions shown before collapsing.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ChangelogStyle?
-
Visual configuration.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited