admob_flutter 0.3.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 97

Announcement: I'm looking for a maintainer #

I'm really sorry to announce this, but my schedules have been too tight for me the last months that I can't find good time to maintain this project. I'm looking for a possible maintainer to transfer this project to, someone who is sure to perfectly handle it and keep it updated. Please drop me a message on youssef.kbe@gmail.com.

admob_flutter #

version version GitHub stars GitHub forks GitHub issues

Demo

A new Flutter plugin that uses native platform views to show Admob banner ads!

This plugin also has support for Interstitial and Reward ads.

This is an early version of the plugin, my primary goal was to overcome the banner ads positioning limitations by implementing a platform views solution, and keeping things simple and stupid because I'm still learning about many Flutter related stuff. I will actively work on adding missing features, improving, and refactoring the code in my free time.

Installation #

  1. Depend on it Add this to your package's pubspec.yaml file:
dependencies:
  admob_flutter: "^0.3.1"

  1. Install it You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

  1. Import it Now in your Dart code, you can use:
import 'package:admob_flutter/admob_flutter.dart';

Supported Platforms #

  • 0.3.0 >= iOS
  • 0.2.0 >= AndroidX
  • FlutterSdk >=2.1.0 < 3.0.0

Supported Admob features #

  • Banner Ads
  • Interstitial Ads
  • Reward Ads
  • Native Ads (Coming soon)

View the rest of the documentation on the repository Wiki!

Pull Requests #

I welcome and encourage all pull requests. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match the document style as closely as possible.
  2. Please keep PR titles easy to read and descriptive of changes, this will make them easier to review/merge.
  3. Pull requests must be made against master branch for this repository.
  4. Check for existing issues first, before filing an issue.
  5. Have fun!

[0.3.3] - 2019/09/25

iOS 13.0 fixes

[0.3.2] - 2019/09/11

iOS Interstitial crash fix if didFailToReceiveAdWithError

[0.3.1] - 2019/05/31

iOS Banner crash fix

[0.3.0] - 2019/05/28

Add iOS support!

[0.2.0] - 2019/04/04

Update to AndroidX.

Note: This is a breaking change on Android!

[0.1.2] - Dec 10

  • Release first version

example/README.md

admob_flutter_example #

Demonstrates how to use the admob_flutter plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  admob_flutter: ^0.3.3

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:admob_flutter/admob_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
95
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
97
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.48 points)

56 out of 57 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/src/admob_banner.dart.

Run flutter format to format lib/src/admob_banner.dart.

Format lib/src/admob_banner_controller.dart.

Run flutter format to format lib/src/admob_banner_controller.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
meta ^1.1.6 1.1.7
Transitive dependencies
collection 1.14.11 1.14.12
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8