> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sheet Appearance

> Give the reward sheet your app's fonts with AppearanceConfig.sheet in the Flutter SDK, and what it takes from the Style editor.

> [!NOTE]
>
> New in Flutter SDK 2.6.0, which needs the 2.6.0 native SDKs.

The native SDKs draw the reward sheet. From 2.6.0 the sheet takes its colors, corners, borders, images, and motion from the Style editor in the publisher portal (when the editor is on for your app) and from the variant, with no code. Your code gives it fonts. The per-component `components` map of the native SDKs is not in the Flutter SDK.

## Give the sheet your fonts

```dart theme={null}
await Encore.placement('streak_day_7')
    .useCase(EncoreUseCase.rewardUsers)
    .appearance(const AppearanceConfig(
      accentColor: '#F5C52B',
      sheet: SheetAppearance(
        headingFontFamily: 'Playfair Display', // text the Style editor marks as heading
        bodyFontFamily: 'Inter',               // every other text, the offer text too
      ),
    ))
    .show();
```

Reference: [`placement().appearance()`](https://docs.encorekit.com/publishers/flutter/sdk-reference/placement#appearance).

```dart theme={null}
class SheetAppearance {
  final String? headingFontFamily; // typically the title, subtitle, and primary button
  final String? bodyFontFamily;
  const SheetAppearance({this.headingFontFamily, this.bodyFontFamily});
}
```

On a placement, `appearance()` styles that presentation's sheet: `accentColor`, `backgroundColor`, `textColor`, `onAccentColor`, and `sheet` reach it. Values the Style editor sets win, and the last call wins.

The native SDK draws the sheet, so it cannot use a font that is only a Flutter asset in `pubspec.yaml`. Register the font in each native app too:

* **iOS:** add the font files to the Runner target and list them under `UIAppFonts` in `ios/Runner/Info.plist`. Pass a name `UIFont(name:size:)` loads, such as the PostScript name.
* **Android:** add one `.ttf` or `.otf` per family to `android/app/src/main/res/font/`. The name is looked up as given, then in lowercase with every character outside `[a-z0-9_]` as `_`, so `'Playfair Display'` finds `res/font/playfair_display.ttf`.

The Android lookup is by name at run time, so release resource shrinking can remove the fonts. Keep them with `android/app/src/main/res/raw/keep.xml`:

```xml theme={null}
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@font/*" />
```

A name the platform cannot load, or a font in `res/font` that fails to load, draws the system font, and Android logs a warning. A null or blank name keeps the sheet's own font.

Only a placement's `appearance` reaches the sheet. A trigger component's `appearance` styles the trigger and ignores `sheet`.

## Styles from the Style editor and motion

Colors, corners, borders, images, and motion that the Style editor sets reach the sheet with no code. A Lottie animation plays only when your app links Lottie (`lottie-ios` 4.x on iOS, `com.airbnb.android:lottie` 5.2 or later on Android). Without it, the element draws as it did before 2.6.0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.