flutter_otp_widget 1.0.1 copy "flutter_otp_widget: ^1.0.1" to clipboard
flutter_otp_widget: ^1.0.1 copied to clipboard

A highly customizable OTP (One-Time Password) text field widget for Flutter with support for multiple styles, themes, and input types.

example/lib/main.dart

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

import 'pages/examples_page.dart';

void main() {
  runApp(const ProviderScope(child: MyApp()));
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'OTP TextField Examples',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
      ),
      darkTheme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.blue,
          brightness: Brightness.dark,
        ),
        useMaterial3: true,
      ),
      home: const ExamplesPage(),
    );
  }
}
0
likes
160
points
83
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A highly customizable OTP (One-Time Password) text field widget for Flutter with support for multiple styles, themes, and input types.

Repository (GitHub)
View/report issues

Topics

#otp #textfield #pin #verification #authentication

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_otp_widget