TrackerTheme class
Theme configuration for Tracker components.
TrackerTheme provides styling options for tracker components including corner radius, spacing between segments, and segment height. It enables consistent tracker styling across an application while allowing customization.
Used with ComponentTheme to apply theme values throughout the widget tree.
Example:
ComponentTheme<TrackerTheme>(
data: TrackerTheme(
radius: 8.0,
gap: 2.0,
itemHeight: 40.0,
),
child: MyTrackerWidget(),
);
Constructors
- TrackerTheme.new({double? radius, double? gap, double? itemHeight})
-
Creates a TrackerTheme.
const
Properties
- gap → double?
-
Gap between individual tracker segments in logical pixels.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- itemHeight → double?
-
Height of individual tracker segments in logical pixels.
final
- radius → double?
-
Corner radius for the tracker container in logical pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ValueGetter< double?> ? radius, ValueGetter<double?> ? gap, ValueGetter<double?> ? itemHeight}) → TrackerTheme - Creates a copy of this theme with the given values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override