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
5160c5e1
Unverified
Commit
5160c5e1
authored
Oct 31, 2023
by
Todd Volkert
Committed by
GitHub
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the scale argument to NetworkImage (#137456)
Add docs to NetworkImage constructor
parent
ad13cbd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+3
-0
No files found.
packages/flutter/lib/src/painting/image_provider.dart
View file @
5160c5e1
...
...
@@ -1399,6 +1399,9 @@ class ResizeImage extends ImageProvider<ResizeImageKey> {
// our cache if the headers describe the image as having expired at that point.
abstract
class
NetworkImage
extends
ImageProvider
<
NetworkImage
>
{
/// Creates an object that fetches the image at the given URL.
///
/// The [scale] argument is the linear scale factor for drawing this image at
/// its intended size. See [ImageInfo.scale] for more information.
const
factory
NetworkImage
(
String
url
,
{
double
scale
,
Map
<
String
,
String
>?
headers
})
=
network_image
.
NetworkImage
;
/// The URL from which the image will be fetched.
...
...
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