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
d3155658
Unverified
Commit
d3155658
authored
Oct 01, 2020
by
Phil Quitslund
Committed by
GitHub
Oct 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API docs for typedefs. (#67003)
parent
25f44bb2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
4 deletions
+28
-4
binding.dart
packages/flutter/lib/src/gestures/binding.dart
+2
-2
monodrag.dart
packages/flutter/lib/src/gestures/monodrag.dart
+5
-2
resampler.dart
packages/flutter/lib/src/gestures/resampler.dart
+2
-0
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+7
-0
dropdown.dart
packages/flutter/lib/src/material/dropdown.dart
+3
-0
debug.dart
packages/flutter/lib/src/painting/debug.dart
+5
-0
sliver.dart
packages/flutter/lib/src/widgets/sliver.dart
+4
-0
No files found.
packages/flutter/lib/src/gestures/binding.dart
View file @
d3155658
...
...
@@ -19,7 +19,7 @@ import 'pointer_router.dart';
import
'pointer_signal_resolver.dart'
;
import
'resampler.dart'
;
typedef
HandleSampleTimeChangedCallback
=
void
Function
();
typedef
_
HandleSampleTimeChangedCallback
=
void
Function
();
// Class that handles resampling of touch events for multiple pointer
// devices.
...
...
@@ -48,7 +48,7 @@ class _Resampler {
final
HandleEventCallback
_handlePointerEvent
;
// Callback used to handle sample time changes.
final
HandleSampleTimeChangedCallback
_handleSampleTimeChanged
;
final
_
HandleSampleTimeChangedCallback
_handleSampleTimeChanged
;
// Enqueue `events` for resampling or dispatch them directly if
// not a touch event.
...
...
packages/flutter/lib/src/gestures/monodrag.dart
View file @
d3155658
...
...
@@ -24,15 +24,18 @@ enum _DragState {
/// The velocity at which the pointer was moving when it stopped contacting
/// the screen is available in the `details`.
///
///
See
[DragGestureRecognizer.onEnd].
///
Used by
[DragGestureRecognizer.onEnd].
typedef
GestureDragEndCallback
=
void
Function
(
DragEndDetails
details
);
/// Signature for when the pointer that previously triggered a
/// [GestureDragDownCallback] did not complete.
///
///
See
[DragGestureRecognizer.onCancel].
///
Used by
[DragGestureRecognizer.onCancel].
typedef
GestureDragCancelCallback
=
void
Function
();
/// Signature for a function that builds a [VelocityTracker].
///
/// Used by [DragGestureRecognizer.velocityTrackerBuilder].
typedef
GestureVelocityTrackerBuilder
=
VelocityTracker
Function
(
PointerEvent
event
);
/// Recognizes movement.
...
...
packages/flutter/lib/src/gestures/resampler.dart
View file @
d3155658
...
...
@@ -6,6 +6,8 @@ import 'dart:collection';
import
'events.dart'
;
/// A callback used by [PointerEventResampler.sample] and
/// [PointerEventResampler.stop] to process a resampled `event`.
typedef
HandleEventCallback
=
void
Function
(
PointerEvent
event
);
/// Class for pointer event resampling.
...
...
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
d3155658
...
...
@@ -25,7 +25,14 @@ const Curve _modalBottomSheetCurve = decelerateEasing;
const
double
_minFlingVelocity
=
700.0
;
const
double
_closeProgressThreshold
=
0.5
;
/// A callback for when the user begins dragging the bottom sheet.
///
/// Used by [BottomSheet.onDragStart].
typedef
BottomSheetDragStartHandler
=
void
Function
(
DragStartDetails
details
);
/// A callback for when the user stops dragging the bottom sheet.
///
/// Used by [BottomSheet.onDragEnd].
typedef
BottomSheetDragEndHandler
=
void
Function
(
DragEndDetails
details
,
{
bool
isClosing
,
...
...
packages/flutter/lib/src/material/dropdown.dart
View file @
d3155658
...
...
@@ -34,6 +34,9 @@ const EdgeInsets _kUnalignedButtonPadding = EdgeInsets.zero;
const
EdgeInsets
_kAlignedMenuMargin
=
EdgeInsets
.
zero
;
const
EdgeInsetsGeometry
_kUnalignedMenuMargin
=
EdgeInsetsDirectional
.
only
(
start:
16.0
,
end:
24.0
);
/// A builder to customize dropdown buttons.
///
/// Used by [DropdownButton.selectedItemBuilder].
typedef
DropdownButtonBuilder
=
List
<
Widget
>
Function
(
BuildContext
context
);
class
_DropdownMenuPainter
extends
CustomPainter
{
...
...
packages/flutter/lib/src/painting/debug.dart
View file @
d3155658
...
...
@@ -31,6 +31,11 @@ typedef HttpClientProvider = HttpClient Function();
/// This value is ignored in non-debug builds.
HttpClientProvider
?
debugNetworkImageHttpClientProvider
;
/// Called when the framework is about to paint an [Image] to a [Canvas] with an
/// [ImageSizeInfo] that contains the decoded size of the image as well as its
/// output size.
///
/// See: [debugOnPaintImage].
typedef
PaintImageCallback
=
void
Function
(
ImageSizeInfo
);
/// Tracks the bytes used by a [dart:ui.Image] compared to the bytes needed to
...
...
packages/flutter/lib/src/widgets/sliver.dart
View file @
d3155658
...
...
@@ -213,6 +213,10 @@ class _SaltedValueKey extends ValueKey<Key>{
const
_SaltedValueKey
(
Key
key
):
assert
(
key
!=
null
),
super
(
key
);
}
/// Called to find the new index of a child based on its key in case of
/// reordering.
///
/// Used by [SliverChildBuilderDelegate.findChildIndexCallback].
typedef
ChildIndexGetter
=
int
Function
(
Key
key
);
/// A delegate that supplies children for slivers using a builder callback.
...
...
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