Prerequisites
Flutter
- Flutter: >= 2.5.0
iOS
- Teads iOS SDK: >= 5.0.20
- Platform: iOS 10+ (99% of the devices)
Android
- Teads Android SDK: >= 5.0.19
Import the Teads inApp SDK
Using packages
To add the package, teads_sdk_flutter
, to an app:
- Depend on it
- Open the
pubspec.yaml
file located inside the app folder, and addteads_sdk_flutter
: under dependencies.
- Open the
- Install it
- From the terminal: Run
flutter pub get
.
OR - From Android Studio/IntelliJ: Click Packages get in the action ribbon at the top of
pubspec.yaml
.
OR - From VS Code: Click Get Packages located in right side of the action ribbon at the top of
pubspec.yaml
.
- From the terminal: Run
- Import it
- Add a corresponding import statement in the Dart code.