Flutter Customization

In this section, you will find all the information necessary for customizing the SDK of the Unico IDCloud platform in your Flutter applications


The Flutter SDK allows for some customizations to be made. Below are all the possible customizations for this SDK.

Customize Language


It is possible to configure the experience of the informational messages in the capture frames by changing their language. Use the enumerated type LocaleTypes, which contains the following values:

  • LocaleTypes.PT_BR: for Portuguese(Brazil);

  • LocaleTypes.ES_MX: for Spanish(Mexico);

  • LocaleTypes.ES_ES: for Spanish(Spain);

  • LocaleTypes.EN_US: for English(USA).

See how to implement it in the example below:

unicoCheck.setLocale(LocaleTypes.EN_US);

Customize Capture Experience


This is an optional step, but it is highly recommended to give the capture process the visual identity of your company. You can customize some objects in the frame according to the camera mode used through the setTheme() method.

The supported types for color representation are Color Resource or a String containing the hexadecimal color code. E.g., R.color.red or #FF0000.

All methods are available below:

Method

getColorSilhouetteError()

getColorSilhouetteNeutral()

getColorBackground()

getColorBoxMessage()

getColorTextMessage()

getColorBackgroundPopupError()

getColorBackgroundButtonPopupErrorgetColorTextPopupError()

getColorBackgroundButtonPopupError()

getColorTextButtonPopupError()

getColorBackgroundTakePictureButton()

getColorIconTakePictureButton()

getColorBackgroundBottomDocument()

getColorTextBottomDocument()

getColorProgressBar()

getColorCancelButtonIcon()

In the Android implementation, the customization of the colorCancelButtonIcon must be done by adding the desired color in the colors.xml resource file.

<resources>
    <color name="unico_color_button_cancel">YOUR COLOR</color>
</resources>

Still need help?

Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.

Atualizado

Isto foi útil?