verification_code_custom 0.0.5 copy "verification_code_custom: ^0.0.5" to clipboard
verification_code_custom: ^0.0.5 copied to clipboard

A new flutter custom verification code plug-in.

example/lib/main.dart

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: GestureDetector(
        onTap: () {
          FocusScope.of(context).unfocus();
        },
        child: Scaffold(
          appBar: AppBar(
            title: const Text('Verification_code_custom'),
          ),
          body: Column(
            children: [
              Padding(
                padding: const EdgeInsets.only(top: 100),
                child: verificationCodeWidget(),
              ),
            ],
          ),
        ),
      ),
    );
  }

  Widget verificationCodeWidget(){
    return VerificationCodeCustom(
      textResult: (text) {
        /// do something
      },
    );
  }
}
3
likes
140
points
69
downloads

Publisher

verified publisherlibin.zone

Weekly Downloads

A new flutter custom verification code plug-in.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on verification_code_custom