Flutter
Reference for integrating with the TIKI Flutter SDK
TIKI's SDK is the client-side component that your users will interact with to accept (or decline) data licensing offers.
TIKI's SDK creates immutable, digitally signed license records using cryptographic hashing, forming an audit trail. Programmatically consume records and enforce terms client or server-side using developer-friendly data structures and APIs.
Before you get started, you will need a Publishing ID. It's free to create one; simply log in to our Developer Console and create a new Project.
Installation
Run this command:
$ flutter pub add tiki_sdk_flutter
This will add a line like this to your package's pubspec.yaml
(and run an implicit dart pub get
):
dependencies:
tiki_sdk_flutter: ^1.0.0
Make sure your project's Android minSdkVersion
to is set to at least 19
in [project]/android/app/build.gradle
.
android {
...
defaultConfig {
...
minSdkVersion 19
...
}
}
That's it. And yes, it's really that easy.
Use
All of our libraries include in-code platform-specific documentation. Instead of us trying to force it into here, check out our Dart docs in a format you already know.
Pre-built UI Initialization
TikiSdk.config()
.theme
.primaryTextColor(const Color(0xFF1C0000))
.secondaryTextColor(const Color(0x991C0000))
.primaryBackgroundColor(const Color(0xFFFFFFFF))
.secondaryBackgroundColor(const Color(0xFFF6F6F6))
.accentColor(const Color(0xFF00B277))
.fontFamily("Space Grotesk")
.and()
.offer
.description("Trade your IDFA (kind of like a serial # for your phone) for a discount.")
.reward("reward.png")
.bullet("Learn how our ads perform", true)
.bullet("Reach you on other platforms", false)
.bullet("Sold to other companies", false)
.terms("terms.md")
.ptr("db2fd320-aed0-498e-af19-0be1d9630c63")
.tag(TitleTag.deviceId())
.use([LicenseUsecase.attribution()])
.add()
.initialize("<your-publishing-id>", "<your-user-id>");
Initialize the TIKI SDK in minutes with the TIKI pre-built UI and a custom data offer —just 1 builder function.
Source Code and Reporting Issues
TIKI is open source! Check out the Flutter SDK on GitHub. If you run into an issue, please open an issue. And no, we are not picky about issue formatting, just get the info in, and we'll get right on it.
If you'd like implementation help or to chat with the team responsible for building this awesome SDK, hop in our Discord.
Updated 18 days ago