Skip to content

Commit c85fb05

Browse files
wrap widget tree structure in a details element
1 parent d3dd064 commit c85fb05

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ The package supports many features, like providers that accept arguments. But to
7070
7171
**Note:** the `ProviderScope` defined in step 2 needs to be an ancestor of this `InjectingWidget` widget.
7272
73+
<details>
74+
<summary><strong>If the widget tree structure is still not clear</strong>, click <strong>here</strong> to expand</summary>
75+
7376
### Widget tree structure
7477
7578
To make things clear, here is the widget tree structure from the example above, shown in the most detailed form:
@@ -92,6 +95,8 @@ To make things clear, here is the widget tree structure from the example above,
9295
9396
* ... — widget(s)
9497
98+
</details>
99+
95100
## What is unique about this library
96101
97102
The **key difference between Disco and other established solutions** is that Disco **does not rely solely on types** for providing and injecting dependencies.

docs/src/content/docs/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ The package supports many features, like providers that accept arguments. But to
5454

5555
**Note:** the `ProviderScope` defined in step 2 needs to be an ancestor of this `InjectingWidget` widget.
5656

57+
<details>
58+
<summary><strong>If the widget tree structure is still not clear</strong>, click <strong>here</strong> to expand</summary>
59+
5760
### Widget tree structure
5861

5962
To make things clear, here is the widget tree structure from the example above, shown in the most detailed form:
@@ -76,6 +79,8 @@ To make things clear, here is the widget tree structure from the example above,
7679

7780
* ... — widget(s)
7881

82+
</details>
83+
7984
## What is unique about this library
8085

8186
The **key difference between Disco and other established solutions** is that Disco **does not rely solely on types** for providing and injecting dependencies.

packages/disco/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ The package supports many features, like providers that accept arguments. But to
7070
7171
**Note:** the `ProviderScope` defined in step 2 needs to be an ancestor of this `InjectingWidget` widget.
7272
73+
<details>
74+
<summary><strong>If the widget tree structure is still not clear</strong>, click <strong>here</strong> to expand</summary>
75+
7376
### Widget tree structure
7477
7578
To make things clear, here is the widget tree structure from the example above, shown in the most detailed form:
@@ -92,6 +95,8 @@ To make things clear, here is the widget tree structure from the example above,
9295
9396
* ... — widget(s)
9497
98+
</details>
99+
95100
## What is unique about this library
96101
97102
The **key difference between Disco and other established solutions** is that Disco **does not rely solely on types** for providing and injecting dependencies.

0 commit comments

Comments
 (0)