ActiveGoalCard class
One-row goal card used by the Home "Active goals" list.
[ MasteryRing(44) | Column[ title (serif 17/600), meta (mono 11) ] | chevron ].
Hairline border, 10 px radius, hovers shift the border to ochre to
telegraph "this is tappable." Mirrors the .goal selector in the v2
learner-home mock.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ActiveGoalCard
- Available extensions
Constructors
- ActiveGoalCard({Key? key, required String title, required String meta, required int masteryLevel, VoidCallback? onTap, bool hasAccessibleContent = true})
-
const
Properties
- hasAccessibleContent → bool
-
falsewhen the goal's domain has no studyable topics. The card swaps the meta line for "NO TOPICS AVAILABLE" and drops the trailing chevron so it stops telegraphing "tap to drill in."final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- masteryLevel → int
-
Aggregate mastery level 0..5 used by the leading ring.
final
- meta → String
-
Meta line — JetBrains Mono 11/uppercase, e.g.
'8 topics · 4 in progress'.final - onTap → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Goal name — Source Serif 4, 17/600.
final
Methods
-
animate(
{Key? key, List< Effect> ? effects, AnimateCallback? onInit, AnimateCallback? onPlay, AnimateCallback? onComplete, bool? autoPlay, Duration? delay, AnimationController? controller, Adapter? adapter, double? target, double? value}) → Animate -
Available on Widget, provided by the AnimateWidgetExtensions extension
Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex.myWidget.animate()is equivalent toAnimate(child: myWidget). -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ActiveGoalCard> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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