Skip to content

Commit b8cf8c6

Browse files
authored
Use unicode box-drawing characters for code organization (#11799)
_Description of what this PR is changing or adding, and why:_ This PR changes the example of code organization to use unicode box-drawing characters instead of `|` and `-`. It makes the example more readable. _Issues fixed by this PR (if any):_ none. _PRs or commits this PR depends on (if any):_ none. ## Presubmit checklist - [x] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent f5878f8 commit b8cf8c6

File tree

1 file changed

+33
-33
lines changed
  • src/content/app-architecture/case-study

1 file changed

+33
-33
lines changed

src/content/app-architecture/case-study/index.md

+33-33
Original file line numberDiff line numberDiff line change
@@ -84,45 +84,45 @@ The following is how the code is organized within the Compass application.
8484

8585
```plaintext
8686
lib
87-
|____ui
88-
| |____core
89-
| | |____ui
90-
| | | |____<shared widgets>
91-
| | |____themes
92-
| |____<FEATURE NAME>
93-
| | |____view_model
94-
| | | |_____<view_model class>.dart
95-
| | |____widgets
96-
| | | |____<feature name>_screen.dart
97-
| | | |____<other widgets>
98-
|____domain
99-
| |____models
100-
| | |____<model name>.dart
101-
|____data
102-
| |____repositories
103-
| | |____<repository class>.dart
104-
| |____services
105-
| | |____<service class>.dart
106-
| |____model
107-
| | |____<api model class>.dart
108-
|____config
109-
|____utils
110-
|____routing
111-
|____main_staging.dart
112-
|____main_development.dart
113-
|____main.dart
87+
├─┬─ ui
88+
│ ├─┬─ core
89+
│ │ ├─┬─ ui
90+
│ │ │ └─── <shared widgets>
91+
│ │ └─── themes
92+
│ └─┬─ <FEATURE NAME>
93+
│ ├─┬─ view_model
94+
│ │ └─── <view_model class>.dart
95+
│ └─┬─ widgets
96+
│ ├── <feature name>_screen.dart
97+
│ └── <other widgets>
98+
├─┬─ domain
99+
│ └─┬─ models
100+
│ └─── <model name>.dart
101+
├─┬─ data
102+
│ ├─┬─ repositories
103+
│ │ └─── <repository class>.dart
104+
│ ├─┬─ services
105+
│ │ └─── <service class>.dart
106+
│ └─┬─ model
107+
│ └─── <api model class>.dart
108+
├─── config
109+
├─── utils
110+
├─── routing
111+
├─── main_staging.dart
112+
├─── main_development.dart
113+
└─── main.dart
114114
115115
// The test folder contains unit and widget tests
116116
test
117-
|____data
118-
|____domain
119-
|____ui
120-
|____utils
117+
├─── data
118+
├─── domain
119+
├─── ui
120+
└─── utils
121121
122122
// The testing folder contains mocks other classes need to execute tests
123123
testing
124-
|____fakes
125-
|____models
124+
├─── fakes
125+
└─── models
126126
```
127127

128128
Most of the application code lives in the

0 commit comments

Comments
 (0)