Repository navigation
Commit 3bf3049
committed
fix: Adapt to Flutter 3.47 (#3995)
Flutter 3.47.0 broke the CI pipeline (`analyze-latest` and `test`), this
adapts the code to it without bumping the minimum supported Flutter or
Dart SDK versions:
- Rewrites the `flame_3d` flutter_gpu backend for the new flutter_gpu
API: `ShaderLibrary.fromAsset` is now async, so shader bundles are
preloaded from the `AssetManifest` during `GpuBackend.initialize()`
(mirroring the WebGPU backend), and the vertex/index counts moved from
`bindVertexBuffer`/`bindIndexBuffer` to `draw`/`drawIndexed`, so the
render pass now records the counts at bind time and picks the right draw
call. The committed shader bundles are also regenerated with the new
SDK.
- Since flame_3d now requires the latest stable again, the `analyze` job
(lowest supported version) skips `flame_3d*` and it is instead only
covered by `analyze-latest`, like we have done before when flutter_gpu
has had breaking changes.
- Converts pass-through constructor parameters to super parameters in
the `flame` effects and `ColorTexture`, and avoids a parameter
assignment in `FlameAudio`, fixing the new `use_super_parameters` and
`parameter_assignments` diagnostics.
- Commits the `analyzer.exclude` blocks that the Flutter 3.47 tool now
generates into every package's `analysis_options.yaml` on each run (see
flutter/flutter#191056), placed after the `include:` so the shared
config stays first. Without committing them, every `flutter pub
get`/`run`/`build` dirties the working tree.
Verified locally on Flutter 3.47.0: repo-wide `dart analyze
--fatal-infos`, `melos exec dart format . --set-exit-if-changed`, `dcm
analyze .`, and `melos run test:select --no-select` (2854 passed, 0
failed) are all green, and `flutter pub get` no longer rewrites any
`analysis_options.yaml`.
(cherry picked from commit 0453bad)1 parent 6b8223b commit 3bf3049
81 files changed
Lines changed: 748 additions & 47 deletions
File tree
- .github/workflows
- doc
- flame/examples
- tutorials
- klondike/app
- platformer/app
- space_shooter/app
- examples
- games
- crystal_ball
- padracing
- rogue_shooter
- trex
- packages
- flame_3d
- assets/shaders
- example
- lib/src
- graphics/backend/flutter_gpu
- resources/texture
- flame_audio
- example
- lib
- flame_behavior_tree
- behavior_tree
- example
- flame_behaviors
- example
- flame_bloc
- example
- flame_console
- example
- flame_devtools
- flame_fire_atlas
- example
- flame_forge2d
- example
- flame_gamepads
- example
- flame_isolate
- example
- flame_jenny
- jenny
- flame_kenney_xml
- example
- flame_lint
- flame_lottie
- example
- flame_markdown
- example
- flame_network_assets
- example
- flame_noise
- flame_riverpod
- example
- flame_rive
- example
- flame_spine
- example
- flame_splash_screen
- example
- flame_sprite_fusion
- example
- flame_steering_behaviors
- example
- flame_studio
- flame_svg
- example
- flame_test
- flame_texturepacker
- example
- flame_tiled
- example
- flame_typled
- example
- flame
- example
- lib/src
- effects
- rendering
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments