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
5d6d2585
Commit
5d6d2585
authored
Dec 09, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation based on comments in previous patch
parent
8be3a4fd
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
35 additions
and
13 deletions
+35
-13
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+6
-5
animated_container.dart
packages/flutter/lib/src/widgets/animated_container.dart
+1
-1
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+1
-1
binding.dart
packages/flutter/lib/src/widgets/binding.dart
+6
-0
gesture_detector.dart
packages/flutter/lib/src/widgets/gesture_detector.dart
+1
-1
media_query.dart
packages/flutter/lib/src/widgets/media_query.dart
+5
-1
mimic.dart
packages/flutter/lib/src/widgets/mimic.dart
+1
-1
overlay.dart
packages/flutter/lib/src/widgets/overlay.dart
+3
-2
pages.dart
packages/flutter/lib/src/widgets/pages.dart
+1
-1
routes.dart
packages/flutter/lib/src/widgets/routes.dart
+8
-0
statistics_overlay.dart
packages/flutter/lib/src/widgets/statistics_overlay.dart
+2
-0
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
5d6d2585
...
...
@@ -1103,15 +1103,16 @@ typedef void PointerCancelEventListener(PointerCancelEvent event);
/// How to behave during hit tests.
enum
HitTestBehavior
{
/// Consider this target hit if, and only if, its child was hit.
/// Targets that defer to their children receive events within their bounds
/// only if one of their children is hit by the hit test.
deferToChild
,
/// Consider this target hit whenever the position being hit tested is within its bounds.
/// Opaque targets can be hit by hit tests, causing them to both receive
/// events within their bounds and prevent targets visually behind them from
/// also receiving events.
opaque
,
/// Never consider this target hit but always add the target to the event path anyway.
///
/// Translucent targets both receive events at a given location and permit
/// Translucent targets both receive events within their bounds and permit
/// targets visually behind them to also receive events.
translucent
,
}
...
...
packages/flutter/lib/src/widgets/animated_container.dart
View file @
5d6d2585
...
...
@@ -100,7 +100,7 @@ class AnimatedContainer extends StatefulComponent {
/// Empty space to inscribe inside the decoration.
final
EdgeDims
padding
;
/// The tranformation matrix to apply before painting the container.
/// The tran
s
formation matrix to apply before painting the container.
final
Matrix4
transform
;
/// If non-null, requires the decoration to have this width.
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
5d6d2585
...
...
@@ -806,7 +806,7 @@ class Container extends StatelessComponent {
/// Empty space to inscribe inside the decoration.
final
EdgeDims
padding
;
/// The tranformation matrix to apply before painting the container.
/// The tran
s
formation matrix to apply before painting the container.
final
Matrix4
transform
;
/// If non-null, requires the decoration to have this width.
...
...
packages/flutter/lib/src/widgets/binding.dart
View file @
5d6d2585
...
...
@@ -24,6 +24,12 @@ class WidgetFlutterBinding extends FlutterBinding {
}
/// The one static instance of this class.
///
/// Only valid after ensureInitialized() (or the WidgetFlutterBinding
/// constructor) has been called. If another FlutterBinding subclass is
/// instantiated before this one (e.g. bindings from other frameworks based on
/// the Flutter "rendering" library), then WidgetFlutterBinding.instance will
/// not be valid (and will throw in checked mode).
static
WidgetFlutterBinding
get
instance
=>
FlutterBinding
.
instance
;
void
beginFrame
()
{
...
...
packages/flutter/lib/src/widgets/gesture_detector.dart
View file @
5d6d2585
...
...
@@ -29,7 +29,7 @@ export 'package:flutter/gestures.dart' show
/// A widget that detects gestures.
///
/// Attempts to recognize gestures that co
o
respond to its non-null callbacks.
/// Attempts to recognize gestures that co
r
respond to its non-null callbacks.
///
/// See http://flutter.io/gestures/ for additional information.
class
GestureDetector
extends
StatefulComponent
{
...
...
packages/flutter/lib/src/widgets/media_query.dart
View file @
5d6d2585
...
...
@@ -52,7 +52,11 @@ class MediaQuery extends InheritedWidget {
/// The result of media queries in this subtree.
final
MediaQueryData
data
;
/// Queries the current media for the given context.
/// Returns the media query data for the given context.
///
/// You can use this function to query the size an orientation of the screen.
/// When that information changes, your widget will be scheduled to be rebuilt,
/// keeping your widget up-to-date.
static
MediaQueryData
of
(
BuildContext
context
)
{
MediaQuery
query
=
context
.
inheritFromWidgetOfType
(
MediaQuery
);
return
query
==
null
?
null
:
query
.
data
;
...
...
packages/flutter/lib/src/widgets/mimic.dart
View file @
5d6d2585
...
...
@@ -49,7 +49,7 @@ class MimicOverlayEntry {
/// The animation will take place over the given duration and will apply the
/// given curve.
///
///
Currently we don't support calling this function more than
once per overlay entry.
///
This function can only be called
once per overlay entry.
Future
animateTo
({
GlobalKey
targetKey
,
Duration
duration
,
...
...
packages/flutter/lib/src/widgets/overlay.dart
View file @
5d6d2585
...
...
@@ -110,8 +110,9 @@ class OverlayState extends State<Overlay> {
/// (DEBUG ONLY) Check whether a given entry is visible (i.e., not behind an opaque entry).
///
/// This is an O(N) algorithm, and should not be necessary except for debug asserts.
/// To avoid people depending on it, we only implement it in checked mode.
/// This is an O(N) algorithm, and should not be necessary except for debug
/// asserts. To avoid people depending on it, this function is implemented
/// only in checked mode.
bool
debugIsVisible
(
OverlayEntry
entry
)
{
bool
result
=
false
;
assert
(
_entries
.
contains
(
entry
));
...
...
packages/flutter/lib/src/widgets/pages.dart
View file @
5d6d2585
...
...
@@ -28,7 +28,7 @@ abstract class PageRoute<T> extends ModalRoute<T> {
return
performance
;
}
/// Subclasses can override this method to customize
way heroes are inserted
/// Subclasses can override this method to customize
how heroes are inserted.
void
insertHeroOverlayEntry
(
OverlayEntry
entry
,
Object
tag
,
OverlayState
overlay
)
{
overlay
.
insert
(
entry
);
}
...
...
packages/flutter/lib/src/widgets/routes.dart
View file @
5d6d2585
...
...
@@ -33,6 +33,14 @@ abstract class OverlayRoute<T> extends Route<T> {
navigator
.
overlay
?.
insertAll
(
_overlayEntries
,
above:
insertionPoint
);
}
/// A request was made to pop this route. If the route can handle it
/// internally (e.g. because it has its own stack of internal state) then
/// return false, otherwise return true. Returning false will prevent the
/// default behavior of NavigatorState.pop().
///
/// If this is called, the Navigator will not call dispose(). It is the
/// responsibility of the Route to later call dispose().
///
/// Subclasses shouldn't call this if they want to delay the finished() call.
bool
didPop
(
T
result
)
{
finished
();
...
...
packages/flutter/lib/src/widgets/statistics_overlay.dart
View file @
5d6d2585
...
...
@@ -38,6 +38,8 @@ enum StatisticsOption {
/// Displays performance statistics.
class
StatisticsOverlay
extends
LeafRenderObjectWidget
{
// TODO(abarth): We should have a page on the web site with a screenshot and
// an explanation of all the various readouts.
/// Create a statistics overlay that only displays specific statistics. The
/// mask is created by shifting 1 by the index of the specific StatisticOption
...
...
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