Skip to content

Commit 3fb431d

Browse files
authored
docs(flutter_bloc_concepts): include warnings about Multi widgets (#4603)
1 parent 8c5a16b commit 3fb431d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/src/content/docs/flutter-bloc-concepts.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ to:
142142

143143
<MultiBlocProviderSnippet />
144144

145+
:::caution
146+
147+
When a `BlocProvider` is defined within the context of a `MultiBlocProvider`,
148+
any `child` will be ignored.
149+
150+
:::
151+
145152
### BlocListener
146153

147154
**BlocListener** is a Flutter widget which takes a `BlocWidgetListener` and an
@@ -183,6 +190,13 @@ to:
183190

184191
<MultiBlocListenerSnippet />
185192

193+
:::caution
194+
195+
When a `BlocListener` is defined within the context of a `MultiBlocListener`,
196+
any `child` will be ignored.
197+
198+
:::
199+
186200
### BlocConsumer
187201

188202
**BlocConsumer** exposes a `builder` and `listener` in order to react to new
@@ -241,6 +255,13 @@ to:
241255

242256
<MultiRepositoryProviderSnippet />
243257

258+
:::caution
259+
260+
When a `RepositoryProvider` is defined within the context of a
261+
`MultiRepositoryProvider`, any `child` will be ignored.
262+
263+
:::
264+
244265
## BlocProvider Usage
245266

246267
Lets take a look at how to use `BlocProvider` to provide a `CounterBloc` to a

0 commit comments

Comments
 (0)