voyant_apis 2.0.0 copy "voyant_apis: ^2.0.0" to clipboard
voyant_apis: ^2.0.0 copied to clipboard

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:voyant_apis/voyant_apis.dart';
import 'text_page.dart';
import 'nsfw_page.dart';
import 'email_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: Home());
  }
}

class Home extends StatelessWidget {
  Home({super.key});
  final VoyantAccountCredentials credentials = VoyantAccountCredentials(
    apiKey: "9a444ccfda2f2db31d103868a8e1b2f8", // Demo Key
    accountId: "00000000036c256b", // Demo Key
    apiSecret:
        "46a18ed8bde9d0131ee22c0ed2fb41b54effec0bcffa71b8cb6c08a3edcf0927", // Demo Key
    testMode: true, // not for sdk users
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Voyant SDK Demo")),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              child: const Text("Text API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => TextPage(credentials: credentials),
                ),
              ),
            ),
            const SizedBox(height: 12),
            ElevatedButton(
              child: const Text("NSFW API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => NsfwPage(credentials: credentials),
                ),
              ),
            ),
            const SizedBox(height: 12),
            ElevatedButton(
              child: const Text("Email API"),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (_) => EmailPage(credentials: credentials),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
0
points
390
downloads

Publisher

verified publishervoyantnetworks.com

Weekly Downloads

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #sdk #nsfw #email #text-analysis

License

unknown (license)

Dependencies

crypto, flutter, http, image_compression_flutter

More

Packages that depend on voyant_apis