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
2909fe22
Unverified
Commit
2909fe22
authored
Feb 13, 2018
by
Sigurd Meldgaard
Committed by
GitHub
Feb 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fade video player volume in demo (#14638)
parent
e142d8dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
video_demo.dart
examples/flutter_gallery/lib/demo/video_demo.dart
+3
-11
No files found.
examples/flutter_gallery/lib/demo/video_demo.dart
View file @
2909fe22
...
...
@@ -60,17 +60,7 @@ class VideoCard extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
Widget
fullScreenRoutePageBuilder
(
BuildContext
context
,
Animation
<
double
>
animation
,
Animation
<
double
>
secondaryAnimation
)
{
return
new
AnimatedBuilder
(
child:
_buildFullScreenVideo
(),
animation:
animation
,
builder:
(
BuildContext
context
,
Widget
child
)
{
// TODO(sigurdm): It seems we get a animation.value of 1.0
// at first when entering the route. Find out how to avoid
// this.
controller
.
setVolume
(
animation
.
value
);
return
child
;
},
);
return
_buildFullScreenVideo
();
}
void
pushFullScreenWidget
()
{
...
...
@@ -82,6 +72,8 @@ class VideoCard extends StatelessWidget {
route
.
completed
.
then
((
Null
_
)
{
controller
.
setVolume
(
0.0
);
});
controller
.
setVolume
(
1.0
);
Navigator
.
of
(
context
).
push
(
route
);
}
...
...
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