- 23 Feb, 2023 3 commits
-
-
Hans Muller authored
-
Todd Volkert authored
* Add ResizeImage.policy This adds a new `ResizeImage.policy` property that controls how `ResizeImage` will interpret its `width` and `height` properties. The existing behavior is preserved via `ResizeImagePolicy.exact` (default), but there is now the option to use `ResizeImagePolicy.fit`, which satisfies the use case outlined in flutter/flutter#118543. The API doc assets were added in flutter/assets-for-api-docs#209 Fixes flutter/flutter#118543 * Docuemnt public member * Remove protected annotation from overrides - was failing tests * Fixed analysis of code in Dartdoc * More dartdoc code analysis fixes * One more fix * Review comments
-
Casey Hillers authored
Revert "Speed up first asset load by using the binary-formatted asset manifest for image resolution (#118782)" (#121220) This reverts commit e3db0488.
-
- 21 Feb, 2023 1 commit
-
-
Andrew Kolos authored
Speed up first asset load by using the binary-formatted asset manifest for image resolution (#118782) * add asset manifest bin loading and asset manifest api * use new api for image resolution * remove upfront smc data casting * fix typecasting issue * remove unused import * fix tests * lints * lints * fix import * fix outdated type name * restore AssetManifest docstrings * update test * update other test * make error message for invalid keys more useful
-
- 03 Feb, 2023 1 commit
-
-
Jonah Williams authored
* [framework] use shader tiling instead of repeated calls to drawImage * ++ * ++ * review and test updates * ++ * Update decoration_image.dart * Update decoration_image.dart * ++ * ++ * ++ * ++ * ++ * Update painting.dart * Update decoration_test.dart
-
- 26 Jan, 2023 1 commit
-
-
Todd Volkert authored
This updates the framework to provide higher level wrappers around ui.instantiateImageCodecWithSize(). Functionally, this doesn't change anything (other than deprecating the older loadBuffer() method in favor of loadImage()), but it sets the stage for a simpler change that will allow us to provide a more flexible way to load sized images. #118543
-
- 20 Jan, 2023 1 commit
-
-
Michael Goderbauer authored
-
- 18 Jan, 2023 2 commits
-
-
Michael Goderbauer authored
* remove single-view assumption from paintImage * dpr * fix test for web
-
Paul Berry authored
* Fix applyBoxFit's handling of fitWidth and fitHeight. Previously, in `fitWidth` mode, if the input size had a wider aspect ratio than the output size, `applyBoxFit` would make the source rect taller than the input size in order to match the aspect ratio of the destination rect. Similarly, in `fitHeight` mode, if the input size had a taller aspect ratio than the output size, `applyBoxFit` would make the source rect wider than the input size in to match the aspect ratio of the destination rect. This is in contrast to all the other modes, which never output a source rect that's larger than the input size. Most of the time this worked as intended (since attempting to blit pixels that are outside the source image has no effect), however it meant that if a user attempted to create a `BoxDecoration` that used both `fitWidth` and `repeatY` (e.g. in an attempt to tile a background image), the image would not actually appear to repeat, since the logic in `paintImage` for determining the proper tiling stride is based on the destination image size, meaning that the entire destination rect would be covered in a single tile. This change modifies `applyBoxFit` so that in `fitWidth` mode, if the input size has a wider aspect ratio than the output size, it uses formulas that are equivalent to `contain`, whereas if the input size has a taller aspect ratio than the output size, it uses formulas that are equivalent to `cover`. And vice versa for `fitHeight` mode. This produces source and destination rects that match the behaviour specified in https://api.flutter.dev/flutter/painting/BoxFit.html. * Apply suggestions from code review Co-authored-by:
Michael Goderbauer <goderbauer@google.com>
-
- 13 Jan, 2023 2 commits
-
-
Hans Muller authored
-
Dennis Kugelmann authored
* Add test to check that package prefix of font fallback is not duplicated * Fix duplicate package prefix of font family fallback * Add test to check that package prefix of font fallback is not duplicated * Fix duplicate package prefix of font family fallback
-
- 21 Dec, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 16 Dec, 2022 1 commit
-
-
LongCatIsLooong authored
* Always defer systemFontsDidChange to transientCallbacks phase * unnecessary import
-
- 13 Dec, 2022 1 commit
-
-
LongCatIsLooong authored
* remove RenderEditable textPainter height hack * Still applies the hack on web * unskip web
-
- 07 Dec, 2022 2 commits
-
-
Casey Hillers authored
Revert "Speed up first asset load by encoding asset manifest in binary rather than JSON (#113637)" (#116662) This reverts commit 56cad89b.
-
Greg Spencer authored
* Make some minor changes in preparation for updating the Time Picker to M3 * Revert OutlineInputBorder.borderRadius type change * Revert more OutlineInputBorder.borderRadius changes.
-
- 05 Dec, 2022 1 commit
-
-
Andrew Kolos authored
-
- 07 Nov, 2022 1 commit
-
-
Greg Spencer authored
Fix `CastError` in `StadiumBorder.lerpTo` and `StadiumBorder.lerpFrom` when using `BorderRadiusDirectional` (#114826) * Fix casting in StadiumBorder lerp * Add tests * Fix made-up names
-
- 25 Oct, 2022 1 commit
-
-
Tomasz Gucio authored
-
- 18 Oct, 2022 1 commit
-
-
Greg Spencer authored
-
- 14 Oct, 2022 1 commit
-
-
joshualitt authored
-
- 07 Oct, 2022 2 commits
-
-
MrBirb authored
-
LongCatIsLooong authored
-
- 06 Oct, 2022 2 commits
-
-
alanwutang11 authored
-
Jonah Williams authored
Update FileImage to use the new ImmutableBuffer.fromFilePath constructor to avoid loading bytes through the Dart heap. As a side effect, tis fixes #112881 which prevents dart:io from opening a file larger than INT_MAX bytes on windows. For files that are not exactly a dart:io file, we still use the old method of calling loadBytes() in order to not make this a breaking change.
-
- 04 Oct, 2022 1 commit
-
-
joshualitt authored
-
- 01 Oct, 2022 1 commit
-
-
Andrew Kolos authored
-
- 29 Sep, 2022 1 commit
-
-
joshualitt authored
-
- 27 Sep, 2022 1 commit
-
-
LongCatIsLooong authored
-
- 23 Sep, 2022 1 commit
-
-
Casey Hillers authored
-
- 19 Sep, 2022 1 commit
-
-
joshualitt authored
-
- 13 Sep, 2022 1 commit
-
-
Dan Field authored
-
- 07 Sep, 2022 1 commit
-
-
Jason Simmons authored
-
- 06 Sep, 2022 1 commit
-
-
Dan Field authored
-
- 29 Aug, 2022 1 commit
-
-
Greg Spencer authored
-
- 25 Aug, 2022 1 commit
-
-
Greg Spencer authored
-
- 21 Aug, 2022 1 commit
-
-
Greg Spencer authored
This reverts commit b3aba4d9 because it breaks Google tests.
-
- 19 Aug, 2022 1 commit
-
-
Greg Spencer authored
-
- 17 Aug, 2022 1 commit
-
-
Greg Spencer authored
-
- 16 Aug, 2022 1 commit
-
-
Casey Hillers authored
-