AuraUITheme class
A ThemeExtension that lets you configure AuraUI component defaults through Flutter's standard theming system.
Add it to your MaterialApp theme like this:
MaterialApp(
theme: ThemeData(
extensions: [
AuraUITheme(
buttonRadius: 12,
cardRadius: 8,
containerRadius: 4,
),
],
),
)
Retrieve it anywhere with:
Theme.of(context).extension<AuraUITheme>()
- Inheritance
-
- Object
- ThemeExtension<
AuraUITheme> - AuraUITheme
- Annotations
Constructors
- AuraUITheme({double buttonRadius = 4, double cardRadius = 4, double containerRadius = 4})
-
const
Properties
-
Default border-radius for AuiButton corners. Defaults to
4.final - cardRadius → double
-
Default border-radius for card components. Defaults to
4.final - containerRadius → double
-
Default border-radius for container components. Defaults to
4.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{double? buttonRadius, double? cardRadius, double? containerRadius}) → AuraUITheme -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant AuraUITheme? other, double t) → AuraUITheme -
Linearly interpolate with another ThemeExtension object.
override
-
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.
override
Static Methods
-
lerpDouble(
double a, double b, double t) → double?