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

A captcha plugin.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Captcha Plugin Example'),
        ),
        body: CaptchaWidget(
          imageUrl:
              'http://thispage.tech:9680/jclee1995/flutter-jc-captcha/-/raw/master/example/test_picture.png',
          onSuccess: () {
            print('验证成功');
          },
          onFail: () {
            print('验证失败');
          },
        ),
      ),
    );
  }
}
2
likes
145
pub points
0%
popularity

Publisher

unverified uploader

A captcha plugin.

Repository

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on jc_captcha