Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a4048970
Commit
a4048970
authored
Feb 06, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1648 from abarth/polish_overlay
Overlay polish
parents
f3b1748c
26d23904
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
overlay.dart
packages/flutter/lib/src/widgets/overlay.dart
+6
-2
No files found.
packages/flutter/lib/src/widgets/overlay.dart
View file @
a4048970
...
...
@@ -62,8 +62,10 @@ class _OverlayEntryState extends State<_OverlayEntry> {
class
Overlay
extends
StatefulComponent
{
Overlay
({
Key
key
,
this
.
initialEntries
})
:
super
(
key:
key
);
this
.
initialEntries
:
const
<
OverlayEntry
>[]
})
:
super
(
key:
key
)
{
assert
(
initialEntries
!=
null
);
}
/// The entries to include in the overlay initially.
final
List
<
OverlayEntry
>
initialEntries
;
...
...
@@ -103,6 +105,8 @@ class OverlayState extends State<Overlay> {
/// Otherwise, the entries are inserted on top.
void
insertAll
(
Iterable
<
OverlayEntry
>
entries
,
{
OverlayEntry
above
})
{
assert
(
above
==
null
||
(
above
.
_overlay
==
this
&&
_entries
.
contains
(
above
)));
if
(
entries
.
isEmpty
)
return
;
for
(
OverlayEntry
entry
in
entries
)
{
assert
(
entry
.
_overlay
==
null
);
entry
.
_overlay
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment