gdpr_dialog 1.0.1 copy "gdpr_dialog: ^1.0.1" to clipboard
gdpr_dialog: ^1.0.1 copied to clipboard

outdated

Library for use GDPR dialog from user for personalized ads and non personalized ads. Now works only with android platform.

example/lib/main.dart

import 'dart:async';

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    GdprDialog().showDialog('pub id', 'https://privacy-policy/').then((onValue) {
      print(onValue);
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
46
likes
0
points
176
downloads

Publisher

unverified uploader

Weekly Downloads

Library for use GDPR dialog from user for personalized ads and non personalized ads. Now works only with android platform.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gdpr_dialog