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
cb4a54db
Commit
cb4a54db
authored
Jun 27, 2017
by
Ian Hickson
Committed by
GitHub
Jun 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The documentation will continue until morale improves (#10978)
parent
f5f795c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+6
-0
sliver_persistent_header.dart
...s/flutter/lib/src/rendering/sliver_persistent_header.dart
+18
-0
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
cb4a54db
...
...
@@ -3178,6 +3178,12 @@ class RenderFollowerLayer extends RenderProxyBox {
/// The layer we created when we were last painted.
FollowerLayer
_layer
;
/// Return the transform that was used in the last composition phase, if any.
///
/// If the [FollowerLayer] has not yet been created, was never composited, or
/// was unable to determine the transform (see
/// [FollowerLayer.getLastTransform]), this returns the identity matrix (see
/// [new Matrix4.identity].
Matrix4
getCurrentTransform
()
{
return
_layer
?.
getLastTransform
()
??
new
Matrix4
.
identity
();
}
...
...
packages/flutter/lib/src/rendering/sliver_persistent_header.dart
View file @
cb4a54db
...
...
@@ -16,6 +16,21 @@ import 'object.dart';
import
'sliver.dart'
;
import
'viewport_offset.dart'
;
/// A base class for slivers that have a [RenderBox] child which scrolls
/// normally, except that when it hits the leading edge (typically the top) of
/// the viewport, it shrinks to a minimum size ([minExtent]).
///
/// This class primarily provides helpers for managing the child, in particular:
///
/// * [layoutChild], which applies min and max extents and a scroll offset to
/// lay out the child. This is normally called from [performLayout].
///
/// * [childExtent], to convert the child's box layout dimensions to the sliver
/// geometry model.
///
/// * hit testing, painting, and other details of the sliver protocol.
///
/// Subclasses must implement [performLayout], [minExtent], and [maxExtent].
abstract
class
RenderSliverPersistentHeader
extends
RenderSliver
with
RenderObjectWithChildMixin
<
RenderBox
>,
RenderSliverHelpers
{
RenderSliverPersistentHeader
({
RenderBox
child
})
{
this
.
child
=
child
;
...
...
@@ -286,6 +301,9 @@ class FloatingHeaderSnapConfiguration {
final
Duration
duration
;
}
/// A sliver with a [RenderBox] child which shrinks and scrolls like a
/// [RenderSliverScrollingPersistentHeader], but immediately comes back when the
/// user scrolls in the reverse direction.
abstract
class
RenderSliverFloatingPersistentHeader
extends
RenderSliverPersistentHeader
{
RenderSliverFloatingPersistentHeader
({
RenderBox
child
,
...
...
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