@@ -41,37 +41,37 @@ class _MyAppState extends State<MyAppState> {
4141
4242 final _bannerController = PrebidAdController ();
4343 final _interstitialController = PrebidAdController ();
44-
44+
4545 @override
4646 void initState () {
47- super .initState ();
47+ super .initState ();
4848
49- WidgetsFlutterBinding .ensureInitialized ()
50- .addPostFrameCallback ((_) => initPlugin ());
49+ WidgetsFlutterBinding .ensureInitialized ()
50+ .addPostFrameCallback ((_) => initPlugin ());
5151 }
5252
5353 Future <void > showCustomTrackingDialog (BuildContext context) async =>
54- await showDialog <void >(
55- context: context,
56- builder: (context) => AlertDialog (
57- title: const Text ('Dear User' ),
58- content: const Text (
59- 'We care about your privacy and data security. We keep this app free by showing ads. '
60- 'Can we continue to use your data to tailor ads for you?\n\n You can change your choice anytime in the app settings. '
61- 'Our partners will collect data and use a unique identifier on your device to show you ads.' ,
62- ),
63- actions: [
64- TextButton (
65- onPressed: () => Navigator .pop (context),
66- child: const Text ('Continue' ),
54+ await showDialog <void >(
55+ context: context,
56+ builder: (context) => AlertDialog (
57+ title: const Text ('Dear User' ),
58+ content: const Text (
59+ 'We care about your privacy and data security. We keep this app free by showing ads. '
60+ 'Can we continue to use your data to tailor ads for you?\n\n You can change your choice anytime in the app settings. '
61+ 'Our partners will collect data and use a unique identifier on your device to show you ads.' ,
6762 ),
68- ],
69- ),
70- );
63+ actions: [
64+ TextButton (
65+ onPressed: () => Navigator .pop (context),
66+ child: const Text ('Continue' ),
67+ ),
68+ ],
69+ ),
70+ );
7171
7272 Future <void > initPlugin () async {
7373 final TrackingStatus status =
74- await AppTrackingTransparency .trackingAuthorizationStatus;
74+ await AppTrackingTransparency .trackingAuthorizationStatus;
7575 if (status == TrackingStatus .notDetermined) {
7676 await showCustomTrackingDialog (context);
7777 await Future .delayed (const Duration (milliseconds: 200 ));
@@ -82,7 +82,6 @@ class _MyAppState extends State<MyAppState> {
8282
8383 bool _showInterstitial = false ;
8484
85-
8685 @override
8786 Widget build (BuildContext context) {
8887 return Scaffold (
@@ -145,4 +144,3 @@ class _MyAppState extends State<MyAppState> {
145144 );
146145 }
147146}
148-
0 commit comments