GithubHelp home page GithubHelp logo

mzzznn / flutter_verification_code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awaik/flutter_verification_code

0.0 0.0 0.0 440 KB

A Flutter package that help you create a verification input.

License: MIT License

Java 2.46% Shell 4.73% Objective-C 5.10% Dart 82.57% Ruby 5.13%

flutter_verification_code's Introduction

flutter_verification_code Pub

After install, in your Dart code, you can use:

import 'package:flutter_verification_code/flutter_verification_code.dart';

Usage

VerificationCode(
  textStyle: TextStyle(fontSize: 20.0, color: Colors.red[900]),
  underlineColor: Colors.amber,
  keyboardType: TextInputType.number,
  length: 4,
  // clearAll is NOT required, you can delete it
  // takes any widget, so you can implement your design
  clearAll: Padding(
    padding: const EdgeInsets.all(8.0),
    child: Text(
      'clear all',
      style: TextStyle(
          fontSize: 14.0,
          decoration: TextDecoration.underline,
          color: Colors.blue[700]),
    ),
  ),
  onCompleted: (String value) {
    setState(() {
      _code = value;
    });
  },
  onEditing: (bool value) {
    setState(() {
      _onEditing = value;
    });
  },
),
onEditing: (bool value) {
  setState(() {
    _onEditing = value;
  });
},
Center(
  child: (_onEditing != true)
      ? Text('Your code: $_code')
      : Text('Please enter full code'),
),

Full example is here https://github.com/awaik/flutter_verification_code/tree/master/example

Showcase

Showcase|100x100, 10%

flutter_verification_code's People

Contributors

awaik avatar mohpezeshki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.