flutter_otp_animation 0.0.3 copy "flutter_otp_animation: ^0.0.3" to clipboard
flutter_otp_animation: ^0.0.3 copied to clipboard

Flutter Otp Animation is OTP text field having worm type animation with full customization which hse provision of directionality as well.

example/lib/main.dart

import 'package:flutter_otp_animation/flutter_otp_animation.dart';
import 'package:flutter_otp_animation/constant/colour_constant.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Otp Animation',
      debugShowCheckedModeBanner: false,
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: AppColors.backgroundColour,
      resizeToAvoidBottomInset: false,
      body: SafeArea(
        child: FlutterOtpAnimation(
          onChange: (value) {
            debugPrint('value :: $value');
          },
          onButtonTap: () {},
          onEnd: () {},
          separatedBorderRadius: true,
          autoDismissKeyboard: true,
          direction: Direction.rtl,
        ),
      ),
    );
  }
}
8
likes
150
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Otp Animation is OTP text field having worm type animation with full customization which hse provision of directionality as well.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_otp_animation