tp_package 1.0.5
tp_package: ^1.0.5 copied to clipboard
tp package
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,
);