{"id":25899111,"url":"https://github.com/abdo-essam/solid_payment_system","last_synced_at":"2025-08-02T12:39:36.131Z","repository":{"id":277543608,"uuid":"932757813","full_name":"abdo-essam/solid_payment_system","owner":"abdo-essam","description":"A Flutter application demonstrating SOLID principles implementation in a payment processing system with support for cash and credit card payments.","archived":false,"fork":false,"pushed_at":"2025-02-14T13:32:31.000Z","size":787,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T07:37:06.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdo-essam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-02-14T13:17:46.000Z","updated_at":"2025-02-15T13:01:11.000Z","dependencies_parsed_at":"2025-02-14T14:38:43.261Z","dependency_job_id":null,"html_url":"https://github.com/abdo-essam/solid_payment_system","commit_stats":null,"previous_names":["abdo-essam/solid_payment_system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdo-essam/solid_payment_system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2Fsolid_payment_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2Fsolid_payment_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2Fsolid_payment_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2Fsolid_payment_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdo-essam","download_url":"https://codeload.github.com/abdo-essam/solid_payment_system/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2Fsolid_payment_system/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268391588,"owners_count":24243295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":"2025-03-03T01:27:26.603Z","updated_at":"2025-08-02T12:39:36.103Z","avatar_url":"https://github.com/abdo-essam.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOLID Payment System\n\nA Flutter application demonstrating SOLID principles implementation in a payment processing system with support for cash and credit card payments.\n\n## Features\n\n- Implementation of all SOLID principles\n- Clean and maintainable code structure\n- Theme switching (Light/Dark mode)\n- Dynamic form validation\n- Multiple payment methods support\n- Responsive design\n- Error handling\n- Loading states\n- Success feedback\n\n## SOLID Principles Implementation\n\n### Single Responsibility Principle (S)\n- Each payment class handles only one type of payment and has one specific responsibility\n- Payment methods are separated into individual classes\n- UI components are modularized into widgets\n- Theme handling is separated into a dedicated provider\n\n## Open/Closed Principle (O)\n- Payment system is extensible for new payment methods\n- New payment methods can be added without modifying existing code\n- Theme system can be extended without modifying existing code\n- New UI components can be added without changing existing ones\n\n## Liskov Substitution Principle (L)\n- All payment methods implement the PaymentMethod interface\n- Payment methods can be used interchangeably\n- Theme components follow consistent patterns\n\n## Interface Segregation Principle (I)\n- Specific interfaces for different payment methods\n- Payment interface is simple and specific\n- Clear separation between UI and business logic\n- Modular widget structure\n\n## Dependency Inversion Principle (D)\n- High-level modules depend on abstractions\n- Payment processing is decoupled from specific implementations\n- Theme system is abstracted through providers\n\n## 📱 Screenshots\n\n| Main Screen with Cash Dark                             | Main Screen with Cash Light                             |\n|--------------------------------------------------------|---------------------------------------------------------|\n| \u003cimg src=\"screenshots/main_cash_dark.png\" width=\"250\"\u003e | \u003cimg src=\"screenshots/main_cash_light.png\" width=\"250\"\u003e |\n\n| Main Screen with Card Dark                             | Main Screen with Card Light                           |\n|--------------------------------------------------------|----------------------------------------------|\n| \u003cimg src=\"screenshots/main_card_dark.png\" width=\"250\"\u003e | \u003cimg src=\"screenshots/main_card_light.png\" width=\"250\"\u003e |\n\n\n| Payment Success Screen Dark                                  | Payment Success Screen Light                            |\n|--------------------------------------------------------------|----------------------------------------------|\n| \u003cimg src=\"screenshots/payment_success_dark.png\" width=\"250\"\u003e | \u003cimg src=\"screenshots/payment_success_light.png\" width=\"250\"\u003e |\n\n| Payment Failed Screen Dark                                  | Payment Failed Screen Light                            |\n|-------------------------------------------------------------|----------------------------------------------|\n| \u003cimg src=\"screenshots/payment_failed_dark.png\" width=\"250\"\u003e | \u003cimg src=\"screenshots/payment_failed_light.png\" width=\"250\"\u003e |\n\n\n### Payment Methods\n- `PaymentMethod`: Abstract class defining payment interface\n- `CashPayment`: Implementation for cash payments\n- `CreditPayment`: Implementation for credit card payments\n- `PaymentProcessor`: Handles payment processing logic\n\n### UI Components\n- `PaymentScreen`: Main payment interface\n- `PaymentSuccessScreen`: Payment confirmation screen\n- `CustomTextField`: Reusable form input component\n- `PaymentButton`: Reusable payment action button\n- `PaymentMethodCard`: Payment method selection card\n\n### Theme System\n- Support for light and dark themes\n- Dynamic color system\n- Consistent typography\n- Theme-aware components","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Fsolid_payment_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdo-essam%2Fsolid_payment_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Fsolid_payment_system/lists"}