Skip to content

About

A modular and reusable card number input field built with Flutter

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A modular and reusable card number input field built with Flutter

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages