Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
32c404eb
Commit
32c404eb
authored
Sep 21, 2020
by
nightfallsad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix hero controller"
This reverts commit
678a1a37
.
parent
7ead767f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
lib/container/container_manager.dart
lib/container/container_manager.dart
+5
-9
No files found.
lib/container/container_manager.dart
View file @
32c404eb
...
...
@@ -69,6 +69,7 @@ class ContainerManagerState extends State<BoostContainerManager> {
final
List
<
BoostContainer
>
_offstage
=
<
BoostContainer
>[];
List
<
_ContainerOverlayEntry
>
_leastEntries
;
BoostContainer
_onstage
;
bool
_foreground
=
true
;
...
...
@@ -157,20 +158,15 @@ class ContainerManagerState extends State<BoostContainerManager> {
}
}
final
List
<
Widget
>
containers
=
<
Widget
>[];
containers
.
addAll
(
_offstage
.
map
<
Widget
>(
(
BoostContainer
container
)
=>
HeroControllerScope
(
controller:
null
,
child:
container
)
));
final
List
<
BoostContainer
>
containers
=
<
BoostContainer
>[];
containers
.
addAll
(
_offstage
);
assert
(
_onstage
!=
null
,
'Should have a least one BoostContainer'
);
containers
.
add
(
_onstage
);
_leastEntries
=
containers
.
map
<
_ContainerOverlayEntry
>(
(
Widget
container
)
=>
_ContainerOverlayEntry
(
container
))
(
BoostContainer
container
)
=>
_ContainerOverlayEntry
(
container
))
.
toList
(
growable:
false
);
overlayState
.
insertAll
(
_leastEntries
);
...
...
@@ -340,7 +336,7 @@ class ContainerManagerState extends State<BoostContainerManager> {
}
class
_ContainerOverlayEntry
extends
OverlayEntry
{
_ContainerOverlayEntry
(
Widget
container
)
_ContainerOverlayEntry
(
BoostContainer
container
)
:
super
(
builder:
(
BuildContext
ctx
)
=>
container
,
opaque:
true
,
...
...
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