crosspromote_flutter 0.0.3 copy "crosspromote_flutter: ^0.0.3" to clipboard
crosspromote_flutter: ^0.0.3 copied to clipboard

Flutter widgets to display CrossPromote ads.

CrossPromote - Flutter #

Package Publisher MIT License

crosspromote_flutter is a package that allows you to display custom ads, referrals, and sponsored content inside your app, and to manage it through a unified dashboard.

Getting started #

  1. Create an account on CrossPromote.

  2. Create your first ad, assign it to a an ad set, and create a new app.

  3. Copy your app's identifier (it's visible under your app's name in the dashboard).

  4. Add this package to your dependencies.

dependencies:
  crosspromote_flutter: latest_version
  1. Get the dependencies.
flutter pub get
  1. Use CrossPromote widget in your app.
CrossPromote(
  appId: 'replace-with-your-app-id',
)

Additional information #

  • You can use predefined identifiers to test your app during development, and avoid incurring cost during testing. Use example.image.w320h50 as your app id to display an ad that is 320x50, example.image.w468h60 for 468x60, etc.
  • By default ads are picked randomly. To match a specific size, pass AdSize as size parameter to CrossPromote.
  • To avoid layout shift, you can pass both AdSize, and AdSizeMatch.exact as match parameter.
  • You can also provide a custom builder to handle the layouting yourself. Any case that returns null will fallback to using the default implementation.
  • This package requires at least Flutter 3.32.0 to work.
  • If there are any issues feel free to go to GitHub Issues and report a bug.

Maintainers #