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
5eae4d5a
Commit
5eae4d5a
authored
Dec 08, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #805 from abarth/double_pop
Double-tapping modal barrier pops twice
parents
e857bc6f
c05871a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
routes.dart
packages/flutter/lib/src/widgets/routes.dart
+8
-2
No files found.
packages/flutter/lib/src/widgets/routes.dart
View file @
5eae4d5a
...
@@ -425,16 +425,22 @@ abstract class ModalRoute<T> extends TransitionRoute<T> with LocalHistoryRoute<T
...
@@ -425,16 +425,22 @@ abstract class ModalRoute<T> extends TransitionRoute<T> with LocalHistoryRoute<T
final
PageStorageBucket
_storageBucket
=
new
PageStorageBucket
();
final
PageStorageBucket
_storageBucket
=
new
PageStorageBucket
();
Widget
_buildModalBarrier
(
BuildContext
context
)
{
Widget
_buildModalBarrier
(
BuildContext
context
)
{
Widget
barrier
;
if
(
barrierColor
!=
null
)
{
if
(
barrierColor
!=
null
)
{
assert
(
barrierColor
!=
_kTransparent
);
assert
(
barrierColor
!=
_kTransparent
);
return
new
AnimatedModalBarrier
(
barrier
=
new
AnimatedModalBarrier
(
color:
new
AnimatedColorValue
(
_kTransparent
,
end:
barrierColor
,
curve:
Curves
.
ease
),
color:
new
AnimatedColorValue
(
_kTransparent
,
end:
barrierColor
,
curve:
Curves
.
ease
),
performance:
performance
,
performance:
performance
,
dismissable:
barrierDismissable
dismissable:
barrierDismissable
);
);
}
else
{
}
else
{
return
new
ModalBarrier
(
dismissable:
barrierDismissable
);
barrier
=
new
ModalBarrier
(
dismissable:
barrierDismissable
);
}
}
assert
(
performance
.
status
!=
PerformanceStatus
.
dismissed
);
return
new
IgnorePointer
(
ignoring:
performance
.
status
==
PerformanceStatus
.
reverse
,
child:
barrier
);
}
}
Widget
_buildModalScope
(
BuildContext
context
)
{
Widget
_buildModalScope
(
BuildContext
context
)
{
...
...
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