SmatPayThemeData class

Optional visual configuration for the payment form.

Every value has a SmatPay default, so parent apps only need to provide the colors they want to override.

Annotations

Constructors

SmatPayThemeData({Color primary = SmatPayColors.primaryIndigo, Color accent = SmatPayColors.brandPurple, Color accentVariant = SmatPayColors.brandViolet, Color heading = SmatPayColors.heading, Color bodyText = SmatPayColors.bodyText, Color background = SmatPayColors.softLavender, Color surface = Colors.white, Color border = SmatPayColors.lavenderBorder, Color error = SmatPayColors.error, Color onPrimary = Colors.white})
const
SmatPayThemeData.fromColorScheme(ColorScheme colorScheme)
Builds a plugin theme from a parent application's ColorScheme.
factory

Properties

accent Color
final
accentVariant Color
final
background Color
final
bodyText Color
final
border Color
final
error Color
final
hashCode int
The hash code for this object.
no setterinherited
heading Color
final
onPrimary Color
final
primary Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surface Color
final

Methods

copyWith({Color? primary, Color? accent, Color? accentVariant, Color? heading, Color? bodyText, Color? background, Color? surface, Color? border, Color? error, Color? onPrimary}) SmatPayThemeData
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

Constants

defaults → const SmatPayThemeData
The default SmatPay visual treatment.