32 Commits

Author SHA1 Message Date
Lukas Klingsbo
9dfdd94ac6 chore: Add LLM config directories to gitignore 2026-03-01 17:33:09 +01:00
Liv Tan Ong
212ed354d7 feat!: Implements ExpandedComponent (#3662)
Implements an `ExpandedComponent`, which takes up as much space as
possible along the main axis within a `LinearLayoutComponent`. With more
than one `ExpandedComponent`, this expansion is divided equally.


`PaddingComponent` now inherits from `SingleLayoutComponent`.

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2025-10-20 10:42:07 +02:00
zeyus
575526df3e test: Increase transform2D op count in flaky test (#3709)
In the initial implementation of the `transform2dRoundTripUncertainty` I
tried to approximately figure out how many ops happen in the round trip
transform, but it was just an educated guess. Just bumping it by 1 makes
the test pass with the given seed `2021996283`,

This also adds a helper to run tests with a specific random seed without
modifying the tests, e.g. for this one:
`flutter test --dart-define=RANDOM_SEED=2021996283
packages/flame/test/game/transform2d_test.dart`

And for other tests:
`RANDOM_SEED=2021996283 melos test:seeded`
2025-08-28 21:04:48 +00:00
Luan Nico
526104604f chore: Bring an end to .metadata conflicts (#3668)
Remove all `.metadata` files across the monorepo and add them to
.gitignore.
They just serve to cause conflicts whenever someone runs anything and
according to @wolfenrain "we don't need them".
2025-08-02 11:42:53 +00:00
Lukas Klingsbo
497f128f8c feat: Add WorldRoute to enable swapping worlds from the RouterComponent (#3372)
This PR adds the `WorldRoute` which acts as a normal route, but instead
of adding a new component (page), it swaps out the world that the camera
(either the default camera or an explicitly passed in one) is watching.
2024-11-24 15:05:08 +01:00
Lukas Klingsbo
c92910c688 feat: Initial functionality of flame_devtools (#3061)
![image](https://github.com/flame-engine/flame/assets/744771/4ca93f5f-369e-4644-b7fb-1d7790b962e2)

This adds a structure and some basic functionality for the Flame
devtools extension.

Later I will add a pre/post-hook for publishing to Melos so that it can
build the devtools extension before publishing (and remove the directory
afterwards), since it isn't committed to this repository. For now one
has to run `melos devtools-build` before publishing.

---------

Co-authored-by: Renan <6718144+renancaraujo@users.noreply.github.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
2024-03-05 01:04:43 +01:00
Erick
7f8ed89e2b chore: Ignoring examples platforms folder (#2825)
Change the gitignore to ignore the platform folders of examples.
2023-10-30 18:59:23 +00:00
Erick
61d69656de feat: Add network assets package. (#2314)
# Description

Adds some documentation and a package that can be used to fetch assets
from the network.
2023-03-18 20:12:14 +00:00
Luan Nico
de8f379021 chore: Update version of flutter_svg on flame_svg (#2408)
The flutter_svg version used on flame_svg was outdated, which causes us to lose precious pub points:

This updates the library by migrating a bit of the code (it was def a breaking change on their side, but shouldn't be on ours).
2023-03-15 14:33:28 +01:00
Jochum van der Ploeg
74969a50ab chore: Cleaning up padracing example (#2288)
Saw some outdated code in the padracing example, decided to clean it up.
2023-01-26 11:25:33 +00:00
Pasha Stetsenko
4542966901 chore: Remove all .gitignore files but one (#2150)
The root level .gitignore file already works for all sub-repositories, so they are all actually unnecessary.
This PR leaves only the gitignore at the root of the repo, removing all others.
2022-11-06 21:22:19 +00:00
DevKage
ed9890af11 fix: Melos sphinx scripts windows (#1985)
melos doc-xyz commands were not working on Windows as SOURCEDIR was not properly getting set. I tried changing it to use set SOURCEDIR="$MELOS_ROOT_PATH/doc" and set SOURCEDIR="%MELOS_ROOT_PATH%/doc", but both didn't work. As SOURCEDIR isn't really necessary to be set for the commands to work, this PR remove that variable and directly using $MELOS_ROOT_PATH/doc in its place.

Additionally, this PR also adds .venv (a common folder storing virtual env) to gitignore.
2022-10-02 09:35:23 +00:00
Lukas Klingsbo
5dc595bf80 chore: Add sphinx melos target and fix txt -> text (#1939)
Sphinx was warning that txt doesn'texist, because the correct tag istext`.
Also added a melos target to build the docs.
2022-09-29 18:45:26 +00:00
Lukas Klingsbo
ccf32e0787 ci: Use pubspec_overrides.yaml (#1728)
Since Flutter 3.0.0 we can use Melos feature for modifying the pubspec_overrides.yaml files instead of hacking around with the pubspec.lock files.
2022-06-14 04:20:05 +00:00
Pasha Stetsenko
3f28789881 feat: Added ability to render spritesheet-based fonts (#1634)
This PR adds [SpriteFontRenderer], which is a new implementation of [TextRenderer], allowing to render text based on fonts embedded into a spritesheet.

See the T-Rex game example, where the score is now rendered based on a spritesheet font.

(Also added highscore tracking for the TRex game).
2022-06-03 16:30:48 -03:00
Pasha Stetsenko
39c9c55da1 Remove a file that was added to repo by accident (#1097) 2021-11-14 18:20:25 -03:00
Pasha Stetsenko
d7b51b9d50 Added Makefile to .gitignore (#1096) 2021-11-14 09:59:22 +01:00
Pasha Stetsenko
acb66ef7b5 Sphinx docs (#966) 2021-10-01 13:16:42 -04:00
Erick
5529869a76 Adding custom mouse cursors for flame (#935)
* Adding custom mouse cursors for flame

* linting and adding fvm to gitignore

* PR suggestions

* Apply suggestions from code review

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

Co-authored-by: Luan Nico <luanpotter27@gmail.com>
2021-09-05 20:55:26 -03:00
Erick
2dc47fe66a Adding coverage checking (#794)
* Adding coverage checking

* Installing lcov on ci

* printing summary

* Update scripts/test.sh

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* Improving scripts

* Update .github/pull_request_template.md

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

* Update scripts/test.sh

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* reverting to pwd

* Update scripts/test.sh

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* Updating changelog and min coverage

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
2021-05-18 11:42:31 -03:00
Luan Nico
769bb711c3 Migrate examples back, change to monorepo (#701) 2021-03-12 09:24:50 -05:00
Erick Zanardo
3232d22b75 Adding missing rename revert 2020-05-18 16:02:32 -03:00
Lukas Klingsbo
9293a6e4a9 Renamed doc to docs and minor language fixes 2020-05-10 16:51:49 +02:00
Lukas Klingsbo
6d38f162dc Example showcasing how to use the ContactCallback 2020-05-05 20:17:01 +02:00
Luan Nico
0293fe6398 Adding more vscode files to gitignore 2019-10-14 17:15:07 -04:00
Erick Zanardo
dd0de2e751 Adding go desktop example 2019-05-21 12:20:05 -03:00
Luan Nico
84d3597cc6 Adding build folder to gitignore 2018-09-19 21:36:21 -03:00
Luan Nico
89eec5ee58 working with dart 2.1 2018-08-25 18:34:02 -03:00
Luan Nico
38bfee622d Adding flutter plugins to gitignore 2018-07-11 09:50:07 -03:00
Luan Nico
fe9dbb7ff2 Adding more docs, dont need to commit doc/api folder (its generated) 2018-05-26 21:59:37 -03:00
BC Ko
baa8b644eb Update .gitignore to new dart_tool pub cache
dart-lang/sdk#32030
2018-05-24 15:23:59 -07:00
Luan Nico
2756b35721 First commit 2017-10-22 00:58:04 -02:00