Search packages, repositories and app categories

GitHub repositoryBrianTV98/slider_captcha

slider_captcha

BrianTV98/slider_captcha open-source repository details.

slider_captcha project cover
Stars
34
Forks
26
Last push (UTC)
Sep 12, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

SLIDER CAPTCHA

Authentication by image

Install

  • In your pubspec.yaml root add:

Demo

Showscase gif

Code Example

Slider Captcha verify with client

   SliderCaptcha(
          controller: controller,
          image: Image.asset(
            'assets/image.jpeg',
            fit: BoxFit.fitWidth,
          ),
          colorBar: Colors.blue,
          colorCaptChar: Colors.blue,
          onConfirm: (value) {
            Future.delayed(const Duration(seconds: 1)).then(
              (value) {
                controller.create();
              },
            );
          },
        ),

Slider Captcha verify with server:

    SliderCaptchaClient(
        provider: SliderCaptchaClientProvider(
            base64Image,
            base64Piece,
            coordinateY,
        ),
        onConfirm: (value) async {
            /// Can you verify captcha at here
            await Future.delayed(const Duration(seconds: 1));
            debugPrint(value.toString());
        },
    ),

How to implement server: reference:github

Thank you i5hi recommended and supported 'verify by server' feature.

For details refer to the discussion

Buy Me A Coffee

Trần Văn Hiếu GitHub avatar
GitHub author

Trần Văn Hiếu ↗

HCM City, VietNam
LanguagesDartHTMLRubySwiftKotlinObjective-C

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • lintsDevelopment^1.0.1

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗