Branding class
Contains branding options available for Veriff.
See relevant documentation at https://developers.veriff.com/#flutter-integration.
Constructors
- Branding({AssetImage? logo, String? background, String? onBackground, String? onBackgroundSecondary, String? onBackgroundTertiary, String? primary, String? onPrimary, String? secondary, String? onSecondary, String? cameraOverlay, String? onCameraOverlay, String? outline, String? error, String? success, int? buttonRadius, Fonts? fonts})
- Creates a Branding object.
Properties
- background ↔ String?
-
Screen and dialog background
getter/setter pair
-
Corner radius value for buttons.
getter/setter pair
- cameraOverlay ↔ String?
-
Backgroung color of the overlay area on all the screens with camera
getter/setter pair
- error ↔ String?
-
Error indicators (such as text, borders, icons) displayed on background color
getter/setter pair
- fonts ↔ Fonts?
-
Fonts object for customising the fonts
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- logo ↔ AssetImage?
-
Asset key string for custom logo to replace Veriff logos.
getter/setter pair
- onBackground ↔ String?
-
Non-surface content (such as text, icons) displayed on the background color
getter/setter pair
- onBackgroundSecondary ↔ String?
-
Secondary non-surface content (such as text) displayed on the background color
getter/setter pair
- onBackgroundTertiary ↔ String?
-
Tertiary non-surface content (such as text) displayed on the background color
getter/setter pair
- onCameraOverlay ↔ String?
-
All UI elements on all the screens with camera on top of camera overlay
Accessibility: Must have a contrast ratio of at least 4.5:1 vs
cameraOverlay
getter/setter pair - onPrimary ↔ String?
-
Non-surface content (such as text) displayed on primary surfaces
getter/setter pair
- onSecondary ↔ String?
-
Non-surface content (such as text) displayed on secondary surfaces
getter/setter pair
- outline ↔ String?
-
Outlines and boundaries of UI elements (such as text inputs)
getter/setter pair
- primary ↔ String?
-
Primary surfaces (such as buttons) displayed on the background color
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary ↔ String?
-
Secondary surfaces (such as bullet points and illustrations) displayed on the background color
getter/setter pair
- success ↔ String?
-
Success indicators (such as borders, icons) displayed on background color
getter/setter pair
Methods
-
asMap(
) → Map< String, dynamic> - Returns the Branding object as map.
-
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