https://github.com/abdo-essam/shape_factory_pattern_demo
A Flutter application demonstrating the Factory Design Pattern using shape creation. This project showcases how to implement a factory pattern to create different shapes (Circle, Rectangle, and Square) with smooth animations and a modern UI.
https://github.com/abdo-essam/shape_factory_pattern_demo
Last synced: about 1 month ago
JSON representation
A Flutter application demonstrating the Factory Design Pattern using shape creation. This project showcases how to implement a factory pattern to create different shapes (Circle, Rectangle, and Square) with smooth animations and a modern UI.
- Host: GitHub
- URL: https://github.com/abdo-essam/shape_factory_pattern_demo
- Owner: abdo-essam
- Created: 2025-02-13T23:32:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-13T23:34:00.000Z (over 1 year ago)
- Last Synced: 2025-03-03T01:32:29.493Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 460 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shape Factory Pattern Demo
A Flutter application demonstrating the Factory Design Pattern using shape creation. This project showcases how to implement a factory pattern to create different shapes (Circle, Rectangle, and Square) with smooth animations and a modern UI.
## 📱 Screenshots
| Main Screen | Info Dialog |
|---|---|
|
|
|
## 🎯 Features
- Implementation of Factory Design Pattern
- Three different shapes: Circle, Rectangle, and Square
- Animated shape transitions
- Error handling with visual feedback
- Loading states
- Modern and clean UI
- Informative tooltips
### Design Pattern Implementation
The project uses the Factory Pattern with the following structure:
1. **Shape Interface**
```dart
abstract class Shape {
String revealMe();
Color get color;
IconData get icon;
String get name;
Widget buildShapeWidget();
}