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
becf09c5
Unverified
Commit
becf09c5
authored
Dec 17, 2020
by
Todd Volkert
Committed by
GitHub
Dec 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update various API docs (#72548)
parent
1c18cf3d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
3 deletions
+37
-3
animation_controller.dart
packages/flutter/lib/src/animation/animation_controller.dart
+4
-0
binding.dart
packages/flutter/lib/src/painting/binding.dart
+1
-1
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+12
-0
image_stream.dart
packages/flutter/lib/src/painting/image_stream.dart
+3
-1
ticker.dart
packages/flutter/lib/src/scheduler/ticker.dart
+8
-0
image.dart
packages/flutter/lib/src/widgets/image.dart
+9
-1
No files found.
packages/flutter/lib/src/animation/animation_controller.dart
View file @
becf09c5
...
...
@@ -507,6 +507,10 @@ class AnimationController extends Animation<double>
/// regardless of whether `target` > [value] or not. At the end of the
/// animation, when `target` is reached, [status] is reported as
/// [AnimationStatus.completed].
///
/// If the `target` argument is the same as the current [value] of the
/// animation, then this won't animate, and the returned [TickerFuture] will
/// be already complete.
TickerFuture
animateTo
(
double
target
,
{
Duration
?
duration
,
Curve
curve
=
Curves
.
linear
})
{
assert
(()
{
if
(
this
.
duration
==
null
&&
duration
==
null
)
{
...
...
packages/flutter/lib/src/painting/binding.dart
View file @
becf09c5
...
...
@@ -68,7 +68,7 @@ mixin PaintingBinding on BindingBase, ServicesBinding {
@protected
ImageCache
createImageCache
()
=>
ImageCache
();
/// Calls through to [dart:ui] from [ImageCache].
/// Calls through to [dart:ui
.instantiateImageCodec
] from [ImageCache].
///
/// The `cacheWidth` and `cacheHeight` parameters, when specified, indicate
/// the size to decode the image to.
...
...
packages/flutter/lib/src/painting/image_provider.dart
View file @
becf09c5
...
...
@@ -928,9 +928,21 @@ class MemoryImage extends ImageProvider<MemoryImage> {
assert
(
scale
!=
null
);
/// The bytes to decode into an image.
///
/// The bytes represent encoded image bytes and can be encoded in any of the
/// following supported image formats: {@macro flutter.dart:ui.imageFormats}
///
/// See also:
///
/// * [PaintingBinding.instantiateImageCodec]
final
Uint8List
bytes
;
/// The scale to place in the [ImageInfo] object of the image.
///
/// See also:
///
/// * [ImageInfo.scale], which gives more information on how this scale is
/// applied.
final
double
scale
;
@override
...
...
packages/flutter/lib/src/painting/image_stream.dart
View file @
becf09c5
...
...
@@ -105,11 +105,13 @@ class ImageInfo {
///
/// The scale factor applies to the width and the height.
///
/// For example, if this is 2.0 it means that there are four image pixels for
/// {@template flutter.painting.imageInfo.scale}
/// For example, if this is 2.0, it means that there are four image pixels for
/// every one logical pixel, and the image's actual width and height (as given
/// by the [dart:ui.Image.width] and [dart:ui.Image.height] properties) are
/// double the height and width that should be used when painting the image
/// (e.g. in the arguments given to [Canvas.drawImage]).
/// {@endtemplate}
final
double
scale
;
/// A string used for debugging purposes to identify the source of this image.
...
...
packages/flutter/lib/src/scheduler/ticker.dart
View file @
becf09c5
...
...
@@ -296,6 +296,14 @@ class Ticker {
/// Release the resources used by this object. The object is no longer usable
/// after this method is called.
///
/// It is legal to call this method while [isActive] is true, in which case:
///
/// * The frame callback that was requested by [scheduleTick], if any, is
/// canceled.
/// * The future that was returned by [start] does not resolve.
/// * The future obtained from [TickerFuture.orCancel], if any, resolves
/// with a [TickerCanceled] error.
@mustCallSuper
void
dispose
()
{
if
(
_future
!=
null
)
{
...
...
packages/flutter/lib/src/widgets/image.dart
View file @
becf09c5
...
...
@@ -649,7 +649,15 @@ class Image extends StatefulWidget {
/// Creates a widget that displays an [ImageStream] obtained from a [Uint8List].
///
/// The [bytes], [scale], and [repeat] arguments must not be null.
/// The `bytes` argument specifies encoded image bytes, which can be encoded
/// in any of the following supported image formats:
/// {@macro flutter.dart:ui.imageFormats}
///
/// The `scale` argument specifies the linear scale factor for drawing this
/// image at its intended size and applies to both the width and the height.
/// {@macro flutter.painting.imageInfo.scale}
///
/// The `bytes`, `scale`, and [repeat] arguments must not be null.
///
/// This only accepts compressed image formats (e.g. PNG). Uncompressed
/// formats like rawRgba (the default format of [dart:ui.Image.toByteData])
...
...
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