File tree 1 file changed +12
-0
lines changed
packages/flutter/lib/src/widgets
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,18 @@ class Overlay extends StatefulWidget {
209
209
}
210
210
211
211
/// The entries to include in the overlay initially.
212
+ ///
213
+ /// These entries are only used when the [OverlayState] is initialized. If you
214
+ /// are providing a new [Overlay] description for an overlay that's already in
215
+ /// the tree, then the new entries are ignored.
216
+ ///
217
+ /// To add entries to an [Overlay] that is already in the tree, use
218
+ /// [Overlay.of] to obtain the [OverlayState] (or assign a [GlobalKey] to the
219
+ /// [Overlay] widget and obtain the [OverlayState] via
220
+ /// [GlobalKey.currentState] ), and then use [OverlayState.add] or
221
+ /// [OverlayState.addAll] .
222
+ ///
223
+ /// To remove an entry from an [Overlay] , use [OverlayEntry.remove] .
212
224
final List <OverlayEntry > initialEntries;
213
225
214
226
/// The state from the closest instance of this class that encloses the given context.
You can’t perform that action at this time.
0 commit comments