Skip to main content

Customization API

Theme methods
MethodDescription
getColorBackground()Background color of the silhouette
getColorBoxMessage()Background color of the message box
getColorTextMessage()Text color inside the message box
getColorIconTakePictureButton()Icon color of the manual photo capture button
getColorBackgroundBottomDocument()Background color of the document capture box
getColorTextBottomDocument()Text color of the document capture box
Color value types

Supported color types are Color Resource (R.color.your_color) or hexadecimal String ("#FF0000").

Cancel button color (Android-only)

The customization of colorCancelButtonIcon is not exposed via the Dart theme API — it must be added in the Android colors.xml resource file:

<resources>
<color name="unico_color_button_cancel">YOUR COLOR</color>
</resources>
Locale
MethodTypeDescription
setLocale(LocaleTypes locale)LocaleTypesSets the capture screen language

Refer to API Reference > Enums for the full list of supported LocaleTypes values.