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
ac9e016a
Commit
ac9e016a
authored
Feb 03, 2016
by
krisgiesing
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1579 from krisgiesing/doc_tweaks
Fix formatting on AssetVendor's dart doc
parents
cbb2761e
90da69c9
Changes
2
Hide 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 @
ac9e016a
...
@@ -706,7 +706,7 @@ enum BoxShape {
...
@@ -706,7 +706,7 @@ enum BoxShape {
/// A circle centered in the middle of the box into which the BoxDecoration is
/// 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,
/// 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.
/// the box.
circle
circle
}
}
...
...
packages/flutter/lib/src/widgets/asset_vendor.dart
View file @
ac9e016a
...
@@ -9,6 +9,7 @@ import 'dart:convert';
...
@@ -9,6 +9,7 @@ import 'dart:convert';
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
import
'package:mojo/core.dart'
as
core
;
import
'package:mojo/core.dart'
as
core
;
import
'media_query.dart'
;
import
'basic.dart'
;
import
'basic.dart'
;
import
'framework.dart'
;
import
'framework.dart'
;
...
@@ -146,7 +147,7 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
...
@@ -146,7 +147,7 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// Given a main asset and a set of variants, AssetVendor chooses the most
/// Given a main asset and a set of variants, AssetVendor chooses the most
/// appropriate asset for the current context. The current asset resolution
/// appropriate asset for the current context. The current asset resolution
/// strategy knows how to find the asset most closely matching the current
/// 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
/// 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
/// assets targeting different pixel ratios, place the variant assets in
...
@@ -158,9 +159,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
...
@@ -158,9 +159,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// as 1.5 and 2.0 pixel ratios (variants). The asset bundle should then contain
/// as 1.5 and 2.0 pixel ratios (variants). The asset bundle should then contain
/// the following assets:
/// the following assets:
///
///
/// ```
/// heart.png
/// heart.png
/// 1.5x/heart.png
/// 1.5x/heart.png
/// 2.0x/heart.png
/// 2.0x/heart.png
/// ```
///
///
/// On a device with a 1.0 device pixel ratio, the image chosen would be
/// 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
/// heart.png; on a device with a 1.3 device pixel ratio, the image chosen
...
@@ -170,9 +173,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
...
@@ -170,9 +173,11 @@ class _ResolutionAwareAssetResolver extends _VariantAssetResolver {
/// at the equivalent level; that is, the following is also a valid bundle
/// at the equivalent level; that is, the following is also a valid bundle
/// structure:
/// structure:
///
///
/// ```
/// icons/heart.png
/// icons/heart.png
/// icons/1.5x/heart.png
/// icons/1.5x/heart.png
/// icons/2.0x/heart.png
/// icons/2.0x/heart.png
/// ```
class
AssetVendor
extends
StatefulComponent
{
class
AssetVendor
extends
StatefulComponent
{
AssetVendor
({
AssetVendor
({
Key
key
,
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