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
0
Merge Requests
0
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
678a1a37
Commit
678a1a37
authored
Jul 08, 2020
by
Chun-Heng Tai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hero controller
parent
91522c43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/container/container_manager.dart
lib/container/container_manager.dart
+9
-5
No files found.
lib/container/container_manager.dart
View file @
678a1a37
...
...
@@ -69,7 +69,6 @@ class ContainerManagerState extends State<BoostContainerManager> {
final
List
<
BoostContainer
>
_offstage
=
<
BoostContainer
>[];
List
<
_ContainerOverlayEntry
>
_leastEntries
;
BoostContainer
_onstage
;
bool
_foreground
=
true
;
...
...
@@ -158,15 +157,20 @@ class ContainerManagerState extends State<BoostContainerManager> {
}
}
final
List
<
BoostContainer
>
containers
=
<
BoostContainer
>[];
containers
.
addAll
(
_offstage
);
final
List
<
Widget
>
containers
=
<
Widget
>[];
containers
.
addAll
(
_offstage
.
map
<
Widget
>(
(
BoostContainer
container
)
=>
HeroControllerScope
(
controller:
null
,
child:
container
)
));
assert
(
_onstage
!=
null
,
'Should have a least one BoostContainer'
);
containers
.
add
(
_onstage
);
_leastEntries
=
containers
.
map
<
_ContainerOverlayEntry
>(
(
BoostContainer
container
)
=>
_ContainerOverlayEntry
(
container
))
(
Widget
container
)
=>
_ContainerOverlayEntry
(
container
))
.
toList
(
growable:
false
);
overlayState
.
insertAll
(
_leastEntries
);
...
...
@@ -336,7 +340,7 @@ class ContainerManagerState extends State<BoostContainerManager> {
}
class
_ContainerOverlayEntry
extends
OverlayEntry
{
_ContainerOverlayEntry
(
BoostContainer
container
)
_ContainerOverlayEntry
(
Widget
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