passcode 0.1.2 copy "passcode: ^0.1.2" to clipboard
passcode: ^0.1.2 copied to clipboard

A Flutter widget for entering a passcode. The widget has cutomisable colors, borders and character lengths.

passcode #

A Flutter widget for entering a passcode.

alt text

This widget allows you to customise number of characters, background and border colors and obscure text.

alt text

Example #

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              PasscodeTextField(
                onTextChanged: (passcode) {
                  print(passcode);
                },
                totalCharacters: 4,
                borderColor: Colors.black,
                passcodeType: PasscodeType.number,
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

0
likes
40
pub points
0%
popularity

Publisher

verified publisherjoshi.dev

A Flutter widget for entering a passcode. The widget has cutomisable colors, borders and character lengths.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on passcode