Skip to content

Commit

Permalink
StartApp Banner Ads added
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsami committed Apr 19, 2020
1 parent 46afdba commit 65a8497
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 2 deletions.
3 changes: 3 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"

/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data android:name="vn.momo.plugin.startapp.STARTAPP_ID" android:value="\ {your-startapp-id}" />

<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
Expand Down
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
4 changes: 4 additions & 0 deletions lib/Screen/HomePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class HomePage extends StatelessWidget {
"Banner",
"https://pngimg.com/uploads/facebook_logos/facebook_logos_PNG19751.png",
"fbbanner"),
AdsData(
"Banner",
"https://pngimg.com/uploads/facebook_logos/facebook_logos_PNG19751.png",
"startapp"),
];
}

Expand Down
2 changes: 1 addition & 1 deletion lib/facebook/fbbanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AdsPageState extends State<AdsPage> {
super.initState();

FacebookAudienceNetwork.init(
testingId: "35e92a63-8102-46a4-b0f5-4fd269e6a13c",
testingId: "974cb6d3-8998-4ab2-88dc-c3ddbfd1c7fb",
);

_loadInterstitialAd();
Expand Down
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutteradsnetwork/Screen/HomePage.dart';
import 'package:flutteradsnetwork/facebook/fbbanner.dart';
import 'package:flutteradsnetwork/startapp/StartAppAds.dart';
import 'package:flutteradsnetwork/google/NativeAdvanced.dart';
import 'package:flutteradsnetwork/google/banner.dart' as bn;
import 'package:flutteradsnetwork/google/interstital.dart';
Expand All @@ -27,6 +28,7 @@ class MyApp extends StatelessWidget {
'/rewarded': (context) => rewarded(),
'/nativeadvanced': (context) => NativeAdvanced(),
'/fbbanner': (context) => FbBanner(),
'/startapp': (context) => StartAppAds(),
},
);
}
Expand Down
39 changes: 39 additions & 0 deletions lib/startapp/StartAppAds.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import 'package:startapp/startapp.dart';

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';



class StartAppAds extends StatelessWidget {
@override
Widget build(BuildContext context) {
final title = 'Start APP Ads';
return MaterialApp(
title: title,
home: Scaffold(
appBar: AppBar(
title: Text(title),
),
body: ListView(
children: <Widget>[
ListTile(
title: Text('Map'),
leading: Icon(Icons.map),
),
AdBanner(),

ListTile(
title: Text('Photo Album'),
leading: Icon(Icons.photo_album),
),
AdBanner(),

ListTile(
title: Text('Phone'),
leading: Icon(Icons.phone),
),
],
)));
}
}
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.2.15"
typed_data:
dependency: transitive
description:
Expand Down

0 comments on commit 65a8497

Please sign in to comment.