File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,29 +29,30 @@ Image里面的BoxFit参数介绍:(相当于Android的ImageView的scaleType
29
29
30
30
// fill 通过篡改原始宽高比来填充目标box
31
31
32
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_fill.png )
32
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/painting/box_fit_fill.png )
33
+
33
34
34
35
/// contain 在尽可能大的情况下,仍然将源完全包含在目标框中。
35
36
36
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_contain.png )
37
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_contain.png )
37
38
38
39
/// cover 尽可能小,同时仍然覆盖整个目标框。
39
40
40
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_cover.png )
41
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_cover.png )
41
42
42
43
/// fitWidth 确保显示源的全部宽度,而不管这是否意味着源垂直溢出目标框。
43
44
44
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_fitWidth.png )
45
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_fitWidth.png )
45
46
46
47
/// fitHeight 确保显示源的全部高度,而不管这是否意味着源水平地溢出目标框。
47
48
48
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_fitHeight.png )
49
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_fitHeight.png )
49
50
50
51
/// none 在目标框中对齐源(默认为居中),并放弃位于框外的源的任何部分。源图像未调整大小。
51
52
52
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_none.png )
53
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_none.png )
53
54
54
55
/// scaleDown 在目标框中对齐源(默认为居中),如果需要,将源缩小以确保源适合该框。这与contain的内容相同,如果该内容会收缩图像,那么它就是none。
55
56
56
- ![ ] ( https://flutter.github.io/assets-for-api-docs/painting/box_fit_scaleDown.png )
57
+ ![ ] ( https://flutter.github.io/assets-for-api-docs/assets/ painting/box_fit_scaleDown.png )
57
58
You can’t perform that action at this time.
0 commit comments