captcha_verification 0.0.1+1 copy "captcha_verification: ^0.0.1+1" to clipboard
captcha_verification: ^0.0.1+1 copied to clipboard

A Flutter package for verifying the captcha from user for better security

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Captcha verification',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text("Captcha Verification Example"),
      ),
      body: Center(
        child: CaptchaVerification(
          onVerified: (bool val) {
            print(val);
          },
        ),
      ),
    );
  }
}
3
likes
160
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for verifying the captcha from user for better security

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on captcha_verification