- 19 Sep, 2023 1 commit
-
-
David Iglesias authored
This PR modifies the web build slightly to create an `AssetManifest.json`, that is a JSON(base64)-encoded version of the `AssetManifest.bin` file. _(This should enable all browsers to download the file without any interference, and all servers to serve it with the correct headers.)_ It also modifies Flutter's `AssetManifest` class so it loads and uses said file `if (kIsWeb)`. ### Issues * Fixes https://github.com/flutter/flutter/issues/124883 ### Tests * Unit tests added. * Some tests that run on the Web needed to be informed of the new filename, but their behavior didn't have to change (binary contents are the same across all platforms). * I've deployed a test app, so users affected by the BIN issue may take a look at the PR in action: * https://dit-tests.web.app
-
- 09 Jun, 2023 1 commit
-
-
Andrew Kolos authored
rename generated asset manifest file back to `AssetManifest.bin` (from `AssetManifest.smcbin`) (#128529) Closes https://github.com/flutter/flutter/issues/128456, which is now linked to in a code comment in this change. Reopens https://github.com/flutter/flutter/issues/124883. This effectively reverts https://github.com/flutter/flutter/pull/126077 and is intended to be cherry-picked into stable.
-
- 07 Jun, 2023 1 commit
-
-
Andrew Kolos authored
Fixes https://github.com/flutter/flutter/issues/127090. https://github.com/flutter/flutter/pull/122505 did a few things to speed up the first asset load that a flutter app performs. One of those things was to not include the main asset in its own list of variants in the asset manifest. The idea was that we know that the main asset always exists, so including it in its list of variants is a waste of storage space and loading time (even if the cost was tiny). However, the assumption that the main asset always exists is wrong. From [Declaring resolution-aware image assets](https://docs.flutter.dev/ui/assets-and-images#resolution-aware), which predates https://github.com/flutter/flutter/pull/122505: > Each entry in the asset section of the pubspec.yaml should correspond to a real file, with the exception of the main asset entry. If the main asset entry doesnât correspond to a real file, then the asset with the lowest resolution is used as the fallback for devices with device pixel ratios below that resolution. The entry should still be included in the pubspec.yaml manifest, however. For example, it's valid to declare `assets/image.png` as an asset even if only `assets/3x/image.png` exists on disk. This fix restores older behavior of including a main asset as a variant of itself in the manifest if it exists. This fix also includes a non-user-visible behavior change: * `"dpr"` is no longer a required field in the asset manifest's underlying structure. For the main asset entry, we do not include `"dpr"`. It makes less sense for the tool to decide what the default target dpr for an image should be. This should be left to the framework.
-
- 15 May, 2023 1 commit
-
-
Andrew Kolos authored
Fixes #124883. Will require a g3fix. Renames `AssetManifest.bin` to `AssetManifest.smcbin` (madeup extension for "Standard Message Codec binary").
-
- 15 Mar, 2023 1 commit
-
-
Andrew Kolos authored
Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution" (#122505) Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution"
-
- 11 Mar, 2023 1 commit
-
-
Jonah Williams authored
Revert "Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution (#121322)" (#122449) Revert "Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution"
-
- 06 Mar, 2023 1 commit
-
-
Andrew Kolos authored
Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution (#121322) Reland "Speed up first asset load by using the binary-formatted asset manifest for image resolution
-
- 23 Feb, 2023 1 commit
-
-
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
-
- 07 Dec, 2022 1 commit
-
-
Casey Hillers authored
Revert "Speed up first asset load by encoding asset manifest in binary rather than JSON (#113637)" (#116662) This reverts commit 56cad89b.
-
- 05 Dec, 2022 1 commit
-
-
Andrew Kolos authored
-
- 01 Oct, 2022 1 commit
-
-
Andrew Kolos authored
-
- 08 Jun, 2022 1 commit
-
-
Alexandre Ardhuin authored
-
- 27 May, 2022 1 commit
-
-
Jonah Williams authored
-
- 25 May, 2022 1 commit
-
-
Pierre-Louis authored
Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`, `painting`, `physics` (#104610) * Use `curly_braces_in_flow_control_structures` for `foundation` * Use `curly_braces_in_flow_control_structures` for `gestures` * Use `curly_braces_in_flow_control_structures` for `painting` * Use `curly_braces_in_flow_control_structures` for `physics` * fix comments * remove trailing space * fix TODO style
-
- 27 Apr, 2022 1 commit
-
-
Phil Quitslund authored
-
- 23 Apr, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 27 Jan, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 06 Oct, 2020 1 commit
-
-
Michael Goderbauer authored
-
- 16 Sep, 2020 1 commit
-
-
Michael R Fairhurst authored
-
- 11 Jun, 2020 1 commit
-
-
Alexandre Ardhuin authored
* add language version 2.8 in packages/flutter * enable non-nullable analyzer flag
-
- 06 May, 2020 1 commit
-
-
Kate Lovett authored
-
- 27 Nov, 2019 1 commit
-
-
Ian Hickson authored
* Update project.pbxproj files to say Flutter rather than Chromium Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright. * Update the copyright notice checker to require a standard notice on all files * Update copyrights on Dart files. (This was a mechanical commit.) * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine. Some were already marked "The Flutter Authors", not clear why. Their dates have been normalized. Some were missing the blank line after the license. Some were randomly different in trivial ways for no apparent reason (e.g. missing the trailing period). * Clean up the copyrights in non-Dart files. (Manual edits.) Also, make sure templates don't have copyrights. * Fix some more ORGANIZATIONNAMEs
-
- 30 Sep, 2019 1 commit
-
-
Alexandre Ardhuin authored
* add missing trailing commas * add more missing trailing commas * add more and more missing trailing commas
-
- 24 Sep, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 25 Jun, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 15 Jun, 2019 1 commit
-
-
Jonah Williams authored
* add web and io implemenations of network and asset image * fix foundation import * update to remove extra asset image indirection * skip chunk test * address comments * disable non-functional test * disable all golden tests * address comments
-
- 10 Jun, 2019 1 commit
-
-
Jonah Williams authored
-
- 07 Mar, 2019 1 commit
-
-
Alexandre Ardhuin authored
* fix indentof statements in BlockFunctionBody * fix indentof statements in BlockFunctionBody in tests
-
- 21 Feb, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 04 Oct, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 12 Sep, 2018 1 commit
-
-
Alexandre Ardhuin authored
* enable lint unnecessary_new * fix tests * fix tests * fix tests
-
- 02 Aug, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 27 Jul, 2018 1 commit
-
-
Todd Volkert authored
It was causing problems rolling Flutter into Fuchsia
-
- 23 Jul, 2018 1 commit
-
-
Alexandre Ardhuin authored
* re-enable lint unnecessary_const * remove trailling whitespaces * remove unnecessary const (after merge)
-
- 16 Jul, 2018 2 commits
-
-
Ian Hickson authored
This reverts commit cc1cf13e.
-
Alexandre Ardhuin authored
-
- 26 May, 2018 1 commit
-
-
fmatosqg authored
-