Search packages, repositories and app categories

slider_captcha cover
Package detailsv1.1.0

slider_captcha

slide captcha the same as binance, allow drag and drop for validation

AndroidiOSWebmacOSWindowsLinux
30-day downloads
5.2K
Likes
116
Pub points
160

Install package

flutter pub add slider_captcha

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that implements a slide-to-captcha UI similar to Binance's verification system. It enables users to validate actions by dragging a slider to a target position, enhancing security against bots while maintaining a smooth user experience. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications requiring simple yet effective captcha validation.

Use cases

  • User registration verification
  • Login security enhancement
  • Form submission protection
  • Bot prevention in web apps
  • API request validation

Key features

  • Drag-and-drop slider interface
  • Binance-style visual design
  • Cross-platform compatibility
  • Simple integration with Flutter apps
  • Customizable appearance and behavior

Suitable for

  • Web and mobile apps needing anti-bot measures
  • Developers seeking lightweight captcha solutions
  • Apps requiring intuitive user verification
  • Projects with strict security requirements
  • Flutter applications targeting multiple platforms

Considerations

  • May require additional backend validation
  • Not suitable for high-security environments alone
  • User experience depends on slider sensitivity settings
  • Limited customization compared to full captcha services
  • Potential accessibility challenges for some users

Original README

Original README snapshot from the linked source repository. Visit the repository 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

Categories

Source repository

Projects using this package