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
90da69c9
Commit
90da69c9
authored
Feb 03, 2016
by
Kris Giesing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting on AssetVendor's dart doc
parent
cbb2761e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
box_painter.dart
packages/flutter/lib/src/painting/box_painter.dart
+1
-1
asset_vendor.dart
packages/flutter/lib/src/widgets/asset_vendor.dart
+6
-1
No files found.
packages/flutter/lib/src/painting/box_painter.dart
View file @
90da69c9
...
...
@@ -706,7 +706,7 @@ enum BoxShape {
/// A circle centered in the middle of the box into which the BoxDecoration is
/// painted. The diameter of the circle is the shortest dimension of the box,
/// either the width o
f
the height, such that the circle touches the edges of
/// either the width o
r
the height, such that the circle touches the edges of
/// the box.
circle
}
...
...
packages/flutter/lib/src/widgets/asset_vendor.dart
View file @
90da69c9
...
...
@@ -9,6 +9,7 @@ import 'dart:convert';
import
'package:flutter/services.dart'
;
import
'package:mojo/core.dart'
as
core
;
import
'media_query.dart'
;
import
'basic.dart'
;
import
'framework.dart'
;
...
...
@@ -146,7 +147,7 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// Given a main asset and a set of variants, AssetVendor chooses the most
/// appropriate asset for the current context. The current asset resolution
/// strategy knows how to find the asset most closely matching the current
/// device pixel ratio
, as given by [MediaQueryData
].
/// device pixel ratio
- see [MediaQuery
].
///
/// Main assets are presumed to match a nominal pixel ratio of 1.0. To specify
/// assets targeting different pixel ratios, place the variant assets in
...
...
@@ -158,9 +159,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// as 1.5 and 2.0 pixel ratios (variants). The asset bundle should then contain
/// the following assets:
///
/// ```
/// heart.png
/// 1.5x/heart.png
/// 2.0x/heart.png
/// ```
///
/// On a device with a 1.0 device pixel ratio, the image chosen would be
/// heart.png; on a device with a 1.3 device pixel ratio, the image chosen
...
...
@@ -170,9 +173,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// at the equivalent level; that is, the following is also a valid bundle
/// structure:
///
/// ```
/// icons/heart.png
/// icons/1.5x/heart.png
/// icons/2.0x/heart.png
/// ```
class
AssetVendor
extends
StatefulComponent
{
AssetVendor
({
Key
key
,
...
...
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