easy_otpfield 0.0.1+1 copy "easy_otpfield: ^0.0.1+1" to clipboard
easy_otpfield: ^0.0.1+1 copied to clipboard

outdated

OTPField With New Features .

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
      
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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


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

class _MyHomePageState extends State<MyHomePage> {
 
  @override
  Widget build(BuildContext context) {
 
    return Scaffold(
      appBar: AppBar(
      
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
   
        title: const Text("Custom OTPfield"),
      ),
      body: Center(
       
        child: EasyOTPField(otpFieldCount: 4, onFieldFill: (otpValue){}, context: context)
      ),
      
    );
  }
}
1
likes
0
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

OTPField With New Features .

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on easy_otpfield