hosted_ad_banner 0.1.1 copy "hosted_ad_banner: ^0.1.1" to clipboard
hosted_ad_banner: ^0.1.1 copied to clipboard

A Flutter package that implements ad banner widget for self hosted ads

Hosted Ad Banner #

style: very good analysis Powered by Mason License: MIT shorebird ci

A Flutter package that implements ad banner widget for self hosted ads

Our top sponsors #

Check out these amazing sponsors that support my work!


Invertase

Become a featured sponsor!

Installation 💻 #

❗ In order to start using Hosted Ad Banner you must have the Flutter SDK installed on your machine.

Install via flutter pub add:

dart pub add hosted_ad_banner

Motivation #

To add ads to a mobile application, your application needs to be published in the store so AdMob can verify your app and review it.

This means that during a time, your app will not be able to show ads.

Releasing an app that is marketed as "contains ad" but not having any for a moment, and then adding them afterwards might lead to a confusing and weird experience to users.

To address that, this package provides a widget that can show ads from a self hosted source, which can be used while that review process is under way.

Additionally, this package can be used as simple solution for apps that want to show ads about their own content, services or products.

How to use #

HostedAdBanner(
  hostedAdds: const [
    HostedAdd(
      targetUrl: 'http://g4me.info/mine',
      imageUrls: [
        'https://cherrybitstudio.wordpress.com/wp-content/uploads/2025/10/mco-2.png',
      ],
    ),
    HostedAdd(
      targetUrl: 'http://g4me.info/doug',
      imageUrls: [
        'https://cherrybitstudio.wordpress.com/wp-content/uploads/2025/10/gd-1.png',
      ],
    ),
  ],
  width: MediaQuery.sizeOf(context).width,
  height: 100,
),

1
likes
150
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that implements ad banner widget for self hosted ads

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

animate_do, cached_network_image, flutter, url_launcher

More

Packages that depend on hosted_ad_banner