flutter_privacy_policy 0.0.3 copy "flutter_privacy_policy: ^0.0.3" to clipboard
flutter_privacy_policy: ^0.0.3 copied to clipboard

outdated

A better UX to present your privacy policy

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

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

class _MyAppState extends State<MyApp> {
  var allow = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Example conversational',
      home: Scaffold(
        appBar: AppBar(
          title: Text("Conversatinal Privacy Policy"),
        ),
        body: Center(
            child: allow
                ? Text("Start your app :D !")
                : PrivacyPolicyWidget(() {
                    setState(() {
                      allow = true;
                    });
                  })),
      ),
    );
  }
}
1
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A better UX to present your privacy policy

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_html, flutter_widgets, intl, json_annotation, json_serializable, provider

More

Packages that depend on flutter_privacy_policy