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

`RandomNumberKeypad` is a customizable Flutter widget that provides a secure numeric keypad with randomly positioned keys for PIN input. It is designed to enhance user security by shuffling the keypad [...]

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Random Number Keypad Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const RandomPinExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.lightGreen,
      appBar: AppBar(title: const Text('Random PIN Keyboard')),
      body: Center(
        child: RandomNumberKeypad(
          pinLength: 4,
          onComplete: (pin) {
            print('Entered PIN: $pin');
            // Add PIN validation logic here.
          },
        ),
      ),
    );
  }
}
2
likes
0
points
5
downloads

Publisher

verified publishersivaprasadnk.dev

Weekly Downloads

`RandomNumberKeypad` is a customizable Flutter widget that provides a secure numeric keypad with randomly positioned keys for PIN input. It is designed to enhance user security by shuffling the keypad layout after every use. The widget allows for masked or visible PIN entry and supports various PIN lengths

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on random_number_keypad