Skip to main content

Customization API

Markdown
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()Deprecated. No effect since Flutter SDK 4.64.0. Background color of the document capture box
getColorTextBottomDocument()Deprecated. No effect since Flutter SDK 4.64.0. Text color of the document capture box
Color value types

Supported color types are hexadecimal String (e.g. "#FF0000") or a native Color instance from the underlying Android/iOS SDK.

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(unicoLocaleTypes:)UnicoLocaleTypesSets the capture screen language

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