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.
✅ 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.
git clone https://github.com/sepehrTabeian/Card-Input-Field---Flutter
cd flutter-card-input
flutter pub get
flutter run
const CardInputScreen(
numberSeparatorLength: 4, // Digits per box
numberValueLength: 16, // Total card number length
boxCount: 4, // Number of input boxes
widthBox: 50,
heightBox: 50,
);
Feel free to submit issues, pull requests, or suggest improvements! 🚀
📩 Maintained by: Sepehr Tabeian
This project is open-source and available under the MIT License.