code_confirmation 1.0.3 copy "code_confirmation: ^1.0.3" to clipboard
code_confirmation: ^1.0.3 copied to clipboard

A widget with numerical keyboard and 4 inputs, usefull for hight secured confirmation with 2 step

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyPage(),
    );
  }
}

class MyPage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: CodeConfirmation(
          onCompleted: (String value) {
            print('-------- print from onComplete MyPage => $value');
          },
          onChanged: (String value) {
            print('-------- print from onChange MyPage => $value');
          },
        ),
      ),
    );
  }
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A widget with numerical keyboard and 4 inputs, usefull for hight secured confirmation with 2 step

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on code_confirmation