InfoScreenConfig class
Customisation for the introductory info screen shown before detection when
DetectionConfig.startWithInfoScreen is true.
Every default reproduces the current v2.0 behaviour, so passing a bare
const InfoScreenConfig() changes nothing. The string literals here mirror
StringConstants verbatim; they are inlined (not referenced) so the
constructor can stay const.
Constructors
-
InfoScreenConfig({String title = "Verify it's really you", String subtitle = "Follow the on-screen prompts to confirm you're a real, live person.", List<
GuidanceItem> guidanceItems = const [GuidanceItem(icon: Icons.wb_sunny_outlined, title: "Good Lighting", description: "Make sure you are in a well lit area and both ears are uncovered"), GuidanceItem(icon: Icons.center_focus_strong_outlined, title: "Look Straight", description: "Hold your phone at eye level and look straight to the camera")], String buttonText = "Begin Verification", List<Color> backgroundGradient = const [Color(0xFF14161B), Color(0xFF1F2330)], List<Color> buttonGradient = const [Color(0xFF00E5A0), Color(0xFF00B4D8)], String? lottieAsset, bool lottieFromPackage = false}) -
const
Properties
-
backgroundGradient
→ List<
Color> -
Vertical background gradient (top -> bottom).
final
-
Gradient fill of the primary button.
final
-
Label of the primary call-to-action button.
final
-
guidanceItems
→ List<
GuidanceItem> -
Guidance rows rendered as glassmorphic cards above the button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lottieAsset → String?
-
Optional custom Lottie asset path.
nulluses the bundled default.final - lottieFromPackage → bool
-
Whether lottieAsset is resolved from this package's assets rather than
the consumer app's assets. Defaults to
false(consumer asset).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String
-
Supporting subtitle under the title.
final
- title → String
-
Large title at the top of the screen.
final
Methods
-
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