Skip to content

Commit 539ecc7

Browse files
committed
Init from old repository
1 parent 1414823 commit 539ecc7

File tree

399 files changed

+13657
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+13657
-0
lines changed

CHANGELOG.md

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
## 0.38.0
2+
- Add conceptual facade pattern.
3+
4+
## 0.37.0
5+
- Add iterator pattern: Word Iterator.
6+
7+
## 0.36.0
8+
- Add iterator pattern: Github Commit.
9+
10+
## 0.35.0
11+
- Add conceptual command pattern.
12+
13+
## 0.34.0
14+
- Add conceptual singleton pattern.
15+
16+
## 0.33.0
17+
- Add conceptual builder pattern.
18+
19+
## 0.32.0
20+
- Add conceptual interpreter pattern.
21+
22+
## 0.31.0
23+
- Add conceptual proxy pattern.
24+
25+
## 0.30.0
26+
- Add strategy pattern: View Strategy.
27+
28+
## 0.29.0
29+
- Add conceptual visitor pattern.
30+
31+
## 0.28.0
32+
- Add conceptual flyweight pattern.
33+
34+
## 0.27.0
35+
- Add template method pattern: Data Miner.
36+
37+
## 0.26.0
38+
- Add conceptual mediator pattern.
39+
40+
## 0.25.0
41+
- Add conceptual state pattern: Three State.
42+
43+
## 0.24.1
44+
- Add flutter icon to project links.
45+
46+
## 0.24.0
47+
- Add state pattern: State Manipulator.
48+
49+
## 0.23.14
50+
- Replace web renderer html to canvakit (deploy_flutter_demo.dart).
51+
52+
## 0.23.13
53+
- Update demos splash screen logo (Ukraine).
54+
55+
## 0.23.12
56+
- Add properties bar to "Tool Panel Factory".
57+
58+
## 0.23.0
59+
- Add "Tool Panel Factory" flutter example
60+
61+
## 0.22.0
62+
- Add visitor pattern: "Shape Xml Export".
63+
64+
## 0.21.0
65+
- Add strategy pattern: "Reservation cargo spaces".
66+
67+
## 0.20.0
68+
- Add "Conceptual Dialog Factory" example.
69+
70+
## 0.19.0
71+
- Add "Conceptual Gui Factory" example.
72+
73+
## 0.18.0
74+
- Add Memento Editor.
75+
76+
## 0.17.16 - refactoring
77+
- Simplifying the ternary construction.
78+
- Remove multiline comment from main README.
79+
- Replace repository urls to relative.
80+
- Fix relative urls.
81+
- Fix name on diagram "Builder", rename JsonFormat to JsonConverter.
82+
- Select pattern "Command" at the diagram.
83+
- Add client code to "Bridge" pattern.
84+
- Fix url position & add example name to ProductsAndBoxes example.
85+
- Add example name to Decorator pattern.
86+
- Format app_observer.dart.
87+
- Connect Application to events on the AppObserver diagram.
88+
- Split into separate files the "Memento" project.
89+
- Remover unnecessary import.
90+
- Move hash generator to application.
91+
- Update SubscriberWidget diagram.
92+
- Fix url position in FlutterAdapter README.md.
93+
94+
## 0.17.0
95+
Add "Adapter" pattern: adapt a non-reactive classic type application for Flutter.
96+
97+
## 0.16.5
98+
Add deploy_flutter_demos script.
99+
100+
## 0.16.0
101+
- Add complex example of an Observer pattern, connected to a Flutter application.
102+
- Add new branch "web-demos" for online examples.
103+
104+
## 0.15.0
105+
- Add second "Observer" example. This example was created to be used in a more complex example.
106+
107+
## 0.14.0
108+
- Add "Memento" conceptual pattern
109+
110+
## 0.13.0
111+
- Add "Observer" pattern from official book, rewritten from Java example
112+
113+
## 0.12.19
114+
- Refactoring: reformatting and minor changes
115+
116+
## 0.12.5
117+
- Put "Shapes" prototype pattern to "Shapes" folder
118+
- The list of patterns has been updated. Added links to projects
119+
120+
## 0.12.0
121+
- Add "Command" pattern from official book, rewritten from Java example
122+
123+
## 0.11.0
124+
- Add "Chain of Responsibility" pattern from official book, rewritten from Java example
125+
126+
## 0.10.0
127+
- Add composite template from official book, rewritten from Java example
128+
129+
## 0.9.0
130+
- Add decorator pattern. Translate from official book java example
131+
132+
## 0.8.5
133+
- Add composite pattern "products_and_boxes"
134+
- Created a Canvas helper tool for visual presentation of patterns
135+
136+
## 0.7.8
137+
- Update diagram for text_graphics, clock, remote_control, color_text_format
138+
- Code match with diagram in clock
139+
140+
## 0.7.0
141+
- Add bridge pattern. Clock example
142+
143+
## 0.6.5
144+
- Add bridge pattern. Device remote control
145+
146+
## 0.5.5
147+
- Add example "graphics engine" and "square round conflict" for adapter patter
148+
- Add description to prototype pattern
149+
- Fix class diagram for text graph
150+
- Add description Builder pattern, text formats
151+
- Add description to car builder pattern
152+
153+
## 0.3.0
154+
- Add an example graphics engine for the adapter pattern
155+
156+
## 0.2.0
157+
- Add the Builder pattern using file format converters as an example
158+
159+
## 0.1.0
160+
- Add pattern Prototype
161+
162+
## 0.0.1
163+
164+
- Initial project structure
165+
- Add README

CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Contributor's Guide
2+
We appreciate any help, whether it's a simple fix of a typo or a whole new example.
3+
Just [make a fork](https://help.github.com/articles/fork-a-repo/),
4+
do your change and submit a [pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/).
5+
6+
### Step-by-step instruction
7+
1. Just make a fork.
8+
2. Clone the forked repository to your local machine.
9+
3. Create a new branch and name it, for example: fix-issue-32.
10+
4. Make changes.
11+
5. Create commits and push them to your forked Github repository.
12+
6. Submit a pull request to the master branch.
13+
7. Wait for review.
14+
15+
### Style guide
16+
Here's a style guide which might help you to keep your changes consistent with our code:
17+
18+
1. All code should meet the [Effective Dart: Style](https://dart.dev/guides/language/effective-dart/style).
19+
20+
2. Use [Dart Format](https://dart.dev/tools/dart-format) or auto format shortcut `Ctrl + Alt + L` in your ide.
21+
22+
3. Try to hard wrap the code at 80th's character. It helps to list the code on the website without scrollbars.
23+
24+
4. File names should match following convention: `some_class_name.dart`
25+
26+
5. Comments may or may not have language tags in them, such as this:
27+
```dart
28+
// EN: All products families have the same varieties (MacOS/Windows).
29+
// This is a MacOS variant of a button.
30+
31+
// RU: Все семейства продуктов имеют одни и те же вариации (MacOS/Windows).
32+
// Это вариант кнопки под MacOS.
33+
```
34+
Don't be scared and ignore the non-English part of such comments. If you want to change
35+
something in a comment like this, then do it. Even if you do it wrong, we'll tell you how
36+
to fix it during the Pull Request.
37+
38+
39+
### Build Flutter examples
40+
```batch
41+
cd root directory
42+
flutter build web -t bin\main.dart
43+
```
44+
45+
### Deploy flutter demos
46+
1. Fork this repo: `https://github.com/RefactoringGuru/design-patterns-dart`
47+
2. Apply your changes.
48+
3. Run the script `dart bin\deploy_flutter_demos.dart`.
49+
This script will build a web platform flutter app and push the changes to your **web-demos** branch on github.
50+
4. You can now make a pull request on the **web-demos** branch.
51+
5. Once approved for the merge, the web app will be available at https://refactoringguru.github.io/design-patterns-dart .

0 commit comments

Comments
 (0)