tp_package 1.0.5 copy "tp_package: ^1.0.5" to clipboard
tp_package: ^1.0.5 copied to clipboard

unlistedoutdated

tp package

TP MEDIA

pub.dev github

Features #

  • Load banner ad faster.
  • Optimize load interstitial ad singleton.
  • Make utils toast, connectivity, alert dialog, text field, tile row.
  • Make flutter share, send mail, compose call in a single package.

Getting started #

dependencies:
  tp_package: ^latest_version

Usage #

Init ad in main function before implement show ad:

const testDeviceIds = <String>['iOS device id to show ads'];
TpAdManager.init(testDeviceIds)

Show banner ad:

TpBannerAd('banner ad unit id')

Load interstitial ad:

TpInterstitialAd.load('interstitial ad unit id', onLoadFailed: yourFunction);

Show interstitial ad:

TpInterstitialAd.show(onDismissAd: yourFunction);

Dispose interstitial ad:

TpInterstitialAd.dispose();

Init material app with responsive for tablet, pc:

MaterialApp(
    builder: TpMaterialApp.builder,
);