DueTodayCard class
One-line due-today entry used by the Home "Due today" column.
Layout: serif title (15/500), uppercase mono domain caption, trailing
chevron. The whole card is 12 × 16 padding, hairline border, 10 px
radius, with a 3 px solid left edge in the domain color (per the
v2 mock at
/tmp/dutato-design/dutato-design-system/project/v2/mocks/learner-home.html,
.due selector).
The accent color is resolved by the parent via
context.tokens.domainColor(slug) — pass a domain slug like
'pm' / 'algo' / 'code' / 'design' / 'data'. Unknown slugs
fall back to ochre.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DueTodayCard
- Available extensions
Constructors
- DueTodayCard({Key? key, required String title, required String domainLabel, required String domainSlug, VoidCallback? onTap})
-
const
Properties
- domainLabel → String
-
Human-readable domain name shown under the title (will be
uppercased by this widget).
final
- domainSlug → String
-
Domain slug used to resolve the left accent stripe color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → VoidCallback?
-
Tap callback — typically pushes
/review?topicId=…or the lesson.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Topic / card title — rendered in Source Serif 4, 15 px, weight 500.
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). -
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