SDK Customization

The Yuno Flutter SDK allows you to customize its appearance to match your application's branding. This includes modifying fonts, button styles, and colors to create a seamless user experience.

Android

For Android, follow the official Android SDK documentation for customization, as these modifications are made via XML.

Android Styling Guide

iOS

The Yuno Flutter SDK allows you to modify styles, including fonts, buttons, and colors. By setting the appearance fields, you can customize the SDK's visual elements to align with your application's branding, enhancing consistency and user experience.

Appearance Configuration

The following table lists the available fields for customizing the Flutter SDK appearance:

FieldDescription
fontFamilySpecifies the font family used in the SDK. Provide the font file name that matches your app's assets.
accentColorDefines the accent color used across SDK elements.
buttonBackgroundColorSets the background color for primary buttons.
buttonTitleColorDetermines the text color for primary buttons.
buttonBorderColorSpecifies the border color for primary buttons.
secondaryButtonBackgroundColorSets the background color for secondary buttons.
secondaryButtonTitleColorDetermines the text color for secondary buttons.
secondaryButtonBorderColorSpecifies the border color for secondary buttons.
disableButtonBackgroundColorSets the background color for disabled buttons.
disableButtonTitleColorDetermines the text color for disabled buttons.
checkboxColorSpecifies the color for the checkbox component.

Usage Example

Below is an example of how to customize the appearance of the iOS SDK in Flutter:

var appearance = Appearance(
  fontFamily: "Climate Crisis",
  accentColor: Colors.red,
  buttonBackgrounColor: Colors.blue,
  buttonBorderBackgrounColor: Colors.red,
  buttonTitleBackgrounColor: Colors.yellow,
  secondaryButtonBackgrounColor: Colors.blueAccent,
  secondaryButtonBorderBackgrounColor: Colors.green,
  secondaryButtonTitleBackgrounColor: Colors.black,
  disableButtonBackgrounColor: Colors.black,
  disableButtonTitleBackgrounColor: Colors.black,
  checkboxColor: Colors.white,
);

await Yuno.init( 
  apiKey: 'your_api_key_here',
  iosConfig: IosConfig(appearance: appearance), 
);

Visual Example

Below are sample images showcasing SDK customizations: