SDK lifecycle

You'll need to implement the full lifecycle of the SDK: this documentation only give you some examples, but you'll need to wire the rest.

Theming

To customize the appearance of the Nabla native views, you'll need to customize the theme from the native code on each platform.

Android

Edit NormalTheme under android/app/src/main/res/values and android/app/src/main/res/values-night (for dark mode):

<style name="NormalTheme" parent="@style/Theme.Material3.Light.NoActionBar">
    <!-- Customize theme here -->
</style>

See the full native documentation for details about how to customize the theme.

iOS

Customize the theme from the AppDelegate.swift located at ios/Runner/AppDelegate.swift:

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  private var nablaMethodCallHandler: NablaMethodCallHandler!

  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    nablaMethodCallHandler = NablaMethodCallHandler()

    let nablaChannel = FlutterMethodChannel(name: "nabla", binaryMessenger: controller.binaryMessenger)
    nablaChannel.setMethodCallHandler(nablaMethodCallHandler)

    // Customize Nabla theme here

    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}

See the full native documentation for details about how to customize the theme.