Customization
These customizations are only available when the capture flow is document-capture or liveness.
The Flutter SDK supports two dimensions of customization (inherited from the underlying native SDKs): language and colors.
Configure the language of informational messages in the capture frames via the setLocale method. Use the LocaleTypes enum:
LocaleTypes.PT_BR— Portuguese (Brazil)LocaleTypes.ES_MX— Spanish (Mexico)LocaleTypes.ES_ES— Spanish (Spain)LocaleTypes.EN_US— English (USA)
unicoCheck.setLocale(LocaleTypes.EN_US);
- A remote activation may be required to use this feature. If you wish to use it, notify your project manager or Unico support.
- If not configured, the SDK uses Portuguese as the default language.
Refer to API Reference > Enums for the full list of supported LocaleTypes values.
Apply a custom theme by configuring the supported methods. Color values can be passed as a Color Resource (R.color.your_color) or a hexadecimal String ("#FF0000").
| Method | What it customizes |
|---|---|
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 |
In the Android implementation, the customization of colorCancelButtonIcon should be done by adding the desired color in the Android colors.xml resource file:
<resources>
<color name="unico_color_button_cancel">YOUR COLOR</color>
</resources>
No other customization dimensions are available — the underlying native SDKs do not expose them, so the Flutter plugin cannot either. If you need a proprietary UI, refer to the Capture Standard option (headless API integration).