secure_flutter 0.0.2 copy "secure_flutter: ^0.0.2" to clipboard
secure_flutter: ^0.0.2 copied to clipboard

A secure license validation plugin for Flutter using API key and bundle ID verification.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:secure_flutter/secure_flutter.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await dotenv.load(fileName: ".env");

  final apiKey = dotenv.env['API_KEY'] ?? '';
  await SecureFlutter.init(apiKey);

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'SecureFlutter Example',
      home: Scaffold(
        appBar: AppBar(title: const Text('SecureFlutter')),
        body: const Center(
          child: Text('SecureFlutter initialized successfully!'),
        ),
      ),
    );
  }
}
2
likes
125
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A secure license validation plugin for Flutter using API key and bundle ID verification.

Homepage

Topics

#security #api #license #validation

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_dotenv, http, package_info_plus

More

Packages that depend on secure_flutter