jc_captcha

A captcha plugin of Flutter.

Getting Started

You can install jc_captcha in your project by flutter pub add:

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

void main() {
  runApp(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('CAPTCHA验证成功');
        },
        onFail: () {
          print('CAPTCHA验证失败');
        },
      ),
    ),
  ));
}

Alt text

Libraries

jc_captcha