TintController class
Manages and isolates color selection for individual elements on the tab bar.
Ensures inactive elements shift colors dynamically based on the active AdaptiveTheme, while selected elements preserve their brand accenting.
Constructors
- TintController({required Color accentColor, required AdaptiveTheme theme})
-
Constructs a TintController bound to a specific
accentColorandtheme.const
Properties
- accentColor → Color
-
The active brand accent/brand highlight color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → AdaptiveTheme
-
The dynamic AdaptiveTheme providing active and inactive color hints.
final
Methods
-
getItemColor(
{required bool isActive}) → Color -
Returns the color to paint the tab elements (symbols, labels) given the item's
isActivestate. -
getPillColor(
) → Color - Returns the background filling tint for the active pill selector.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited