New in Flutter SDK 2.6.0, which needs the 2.6.0 native SDKs.
components map of the native SDKs is not in the Flutter SDK.
Give the sheet your fonts
placement().appearance().
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
UIAppFontsinios/Runner/Info.plist. Pass a nameUIFont(name:size:)loads, such as the PostScript name. - Android: add one
.ttfor.otfper family toandroid/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'findsres/font/playfair_display.ttf.
android/app/src/main/res/raw/keep.xml:
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.