Skip to main content

Flutter SDK for AnnounceKit

Flutter SDK enables you to implement AnnounceKit widgets in your Flutter mobile apps, so you can increase feature awareness by sharing the latest product updates right inside your app. It shows the same widget you configure in the dashboard, so a widget you set up once renders consistently in your Flutter app on both iOS and Android.

With Flutter SDK you can use following AnnounceKit features;

  • Widgets with Badge Launcher
  • Segmentation
  • User Tracking

Getting started

  1. Create a widget in Engage > Widgets and copy its widget id: the last part of the widget URL.
  2. Add the package to your pubspec.yaml:
dependencies:
  announcekit_flutter: ^0.1.0
  1. Create the client with your widget id:
import 'package:announcekit_flutter/announcekit_flutter.dart';

final client = AnnounceKitClient(
  settings: AnnounceKitSettings(
    widget: 'YOUR_WIDGET_ID',
    language: 'en',
    user: {'id': 'user-id', 'email': '[email protected]', 'name': 'John Doe'},
    customFields: {'plan': 'pro'},
  ),
  delegate: this,
);

The SDK shows your widget in a web view, with a launcher button and its unread badge, and tells your delegate when the widget is ready, opened or closed. The example app below shows the platform settings iOS and Android need.

Segmentation and user tracking

Pass user (for example id, name, email) and customFields in AnnounceKitSettings to track users and show different announcements to different audiences. They work like the web widget’s user and data options. Segmentation and user tracking are part of the Segmentation & User Tracking add-on.

FAQ

What does the Flutter SDK show?
Your AnnounceKit widget, with its unread badge. Content and design are managed from your AnnounceKit dashboard, so changes need no app store update.

Can I target specific users or segments from Flutter?
Yes. Pass the user and custom fields in AnnounceKitSettings, then use AnnounceKit’s audience segmentation in the dashboard to show announcements to specific segments.

Does the SDK work on both iOS and Android builds?
Yes. announcekit_flutter is a single Dart package that renders the widget on both platforms from the same Flutter codebase.

Is there an extra cost to using the Flutter SDK?
No. The SDK is free with any AnnounceKit plan; you only need an AnnounceKit account and a widget configured in your dashboard.

Why teams add a changelog widget to a Flutter app

App store release notes are easy to miss, so a shipped feature can go unnoticed for weeks. A badge launcher inside the app surfaces new posts the moment a user opens it, without requiring a new store submission to change the copy, which is useful when you want to update announcement wording after a build has already shipped. Because widget content is managed from the AnnounceKit dashboard rather than compiled into the app binary, product and marketing teams can publish and edit posts without waiting on a new app release, on either iOS or Android.

Please follow our GitHub repo for updates, implementation, and setup guides.
Resources: