Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 1.65 KB

File metadata and controls

52 lines (43 loc) · 1.65 KB

Card Input Field - Flutter 🚀

A modular, reusable, and SOLID-principled Card Number Input Field built using Flutter.
This project demonstrates best practices in state management, clean architecture, and design patterns.

🎥 Demo Preview

📌 SMS Input Field in Action

📌 Credit Card

📌 Features

Custom card number input field with automatic focus shifting.
Supports configurable separator lengths for different card formats.
Follows SOLID principles and design patterns for modularity and scalability.
No external state management library required.
Optimized with controllers to prevent unnecessary rebuilds.

🚀 Getting Started

1️⃣ Clone the Repository

git clone https://github.com/sepehrTabeian/Card-Input-Field---Flutter
cd flutter-card-input

2️⃣ Install Dependencies

flutter pub get

3️⃣ Run the App

flutter run

Customization

const CardInputScreen(
  numberSeparatorLength: 4, // Digits per box
  numberValueLength: 16, // Total card number length
  boxCount: 4, // Number of input boxes
  widthBox: 50,
  heightBox: 50,
);

🤝 Contributing

Feel free to submit issues, pull requests, or suggest improvements! 🚀

📩 Maintained by: Sepehr Tabeian LinkedIn

📜 License

This project is open-source and available under the MIT License.