{"id":50299293,"url":"https://github.com/flutterbysunny/smart_otp_field","last_synced_at":"2026-05-28T11:03:31.255Z","repository":{"id":359084868,"uuid":"1244425108","full_name":"flutterbysunny/smart_otp_field","owner":"flutterbysunny","description":"A smart Flutter OTP input package with autofill, paste support, resend timer, obscure text, and customizable themes.","archived":false,"fork":false,"pushed_at":"2026-05-20T09:31:36.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T13:30:01.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flutterbysunny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-20T08:53:05.000Z","updated_at":"2026-05-20T10:12:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/flutterbysunny/smart_otp_field","commit_stats":null,"previous_names":["flutterbysunny/smart_otp_field"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/flutterbysunny/smart_otp_field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutterbysunny%2Fsmart_otp_field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutterbysunny%2Fsmart_otp_field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutterbysunny%2Fsmart_otp_field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutterbysunny%2Fsmart_otp_field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flutterbysunny","download_url":"https://codeload.github.com/flutterbysunny/smart_otp_field/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutterbysunny%2Fsmart_otp_field/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33605414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T11:03:30.461Z","updated_at":"2026-05-28T11:03:31.247Z","avatar_url":"https://github.com/flutterbysunny.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart OTP Field\n\nA beautiful, customizable Flutter OTP input package with controller support, theme customization, auto focus handling, completion callbacks, and resend timer.\n\n[![Flutter](https://img.shields.io/badge/Flutter-Package-blue.svg)]()\n[![Platform](https://img.shields.io/badge/platform-Android%20%7C%20iOS-green.svg)]()\n[![License](https://img.shields.io/badge/license-MIT-orange.svg)]()\n\n---\n\n## ✨ Features\n\n- 🔢 Beautiful OTP input boxes\n- 🎯 Auto focus next / previous\n- 🎛 OTP controller support\n- 🎨 Custom theme support\n- 📞 `onChanged` callback\n- ✅ `onCompleted` callback\n- 🔄 Resend timer widget\n- 🧹 Clear OTP programmatically\n- 📱 Android \u0026 iOS support\n- 🚀 Easy integration\n\n---\n\n## 📦 Installation\n\nAdd dependency in `pubspec.yaml`\n\n```yaml\ndependencies:\n  smart_otp_field_plus: ^1.0.1\n```\n\nRun:\n\n```bash\nflutter pub get\n```\n\n---\n\n\n## 🧩 Full Example\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:smart_otp_field_plus/smart_otp_field_plus.dart';\n\nclass OtpScreen extends StatelessWidget {\n  OtpScreen({super.key});\n\n  final OtpController controller = OtpController(length: 6);\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(title: const Text(\"OTP Verification\")),\n      body: Padding(\n        padding: const EdgeInsets.all(20),\n        child: Column(\n          children: [\n            SmartOtpFieldPlus(\n              controller: controller,\n              length: 6,\n              onCompleted: (otp) {\n                print(\"OTP Entered: $otp\");\n              },\n            ),\n\n            const SizedBox(height: 20),\n\n            ResendTimer(\n              seconds: 30,\n              onResend: () {\n                print(\"Resend OTP\");\n              },\n            ),\n\n            const SizedBox(height: 20),\n\n            ElevatedButton(\n              onPressed: () {\n                print(controller.value);\n              },\n              child: const Text(\"Submit\"),\n            ),\n          ],\n        ),\n      ),\n    );\n  }\n}\n```\n\n---\n\n## ⚙ Available Properties\n\n### SmartOtpField\n\n| Property | Type | Default | Description |\n|----------|------|---------|-------------|\n| `length` | `int` | `6` | OTP box count |\n| `controller` | `OtpController?` | `null` | OTP controller |\n| `theme` | `OtpTheme` | `default` | Custom UI theme |\n| `onChanged` | `ValueChanged\u003cString\u003e?` | `null` | OTP change callback |\n| `onCompleted` | `ValueChanged\u003cString\u003e?` | `null` | Called when OTP complete |\n\n---\n\n### OtpController\n\n| Property | Description |\n|----------|-------------|\n| `value` | Returns OTP string |\n| `clear()` | Clears all boxes |\n| `isComplete` | Checks OTP completion |\n| `dispose()` | Dispose controllers |\n\n---\n\n### OtpTheme\n\n| Property | Description |\n|----------|-------------|\n| `boxWidth` | OTP box width |\n| `boxHeight` | OTP box height |\n| `textStyle` | OTP text style |\n| `decoration` | Default box decoration |\n| `focusedDecoration` | Focused box decoration |\n\n---\n\n## 📱 Platform Support\n\n| Platform | Support |\n|----------|---------|\n| Android | ✅ |\n| iOS | ✅ |\n\n---\n\n## 📄 License\n\nMIT License\n\n---\n\n## 🤝 Contributing\n\nPull requests are welcome.\n\nIf you find bugs or want improvements, feel free to open an issue.\n\n---\n\n## ⭐ Support\n\nIf you like this package, give it a star on GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterbysunny%2Fsmart_otp_field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutterbysunny%2Fsmart_otp_field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutterbysunny%2Fsmart_otp_field/lists"}