special_click_counter 1.0.0 copy "special_click_counter: ^1.0.0" to clipboard
special_click_counter: ^1.0.0 copied to clipboard

A Flutter package to count clicks and show developers' names after 40 clicks.

Secret Click Counter #

A Flutter package that counts clicks on any widget and shows a dialog with developers' names after 40 clicks.

Installation #

Add the following to your pubspec.yaml:

dependencies:
  secret_click_counter: ^1.0.0

Then run:

flutter pub get

Usage #

Wrap any widget with a GestureDetector and call SecretClickCounter().handleClick(context) on tap. Here's an example:

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Test Secret Click Counter')),
        body: Center(
          child: GestureDetector(
            onTap: () => SecretClickCounter().handleClick(context),
            child: Container(
              width: 200,
              height: 200,
              color: Colors.blue,
              child: const Center(
                child: Text(
                  'Tap Me 40 Times!',
                  style: TextStyle(color: Colors.white, fontSize: 20),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Features #

  • Counts clicks and shows a dialog after 40 clicks.
  • Encrypts developers' names for security.
  • Easy to integrate with any Flutter widget.
0
likes
130
points
133
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to count clicks and show developers' names after 40 clicks.

Documentation

API reference

License

MIT (license)

Dependencies

encrypt, flutter

More

Packages that depend on special_click_counter