Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added AlignComponent layout component #2350

Merged
merged 27 commits into from
Mar 2, 2023
Merged

Commits on Feb 19, 2023

  1. AlignComponent

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    53f4356 View commit details
    Browse the repository at this point in the history
  2. expand example

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    3aa006f View commit details
    Browse the repository at this point in the history
  3. docs

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    890d05a View commit details
    Browse the repository at this point in the history
  4. added tests

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    9714ceb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    94c2d2d View commit details
    Browse the repository at this point in the history
  6. format

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    73c15b1 View commit details
    Browse the repository at this point in the history
  7. use children in the example

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    fa19f88 View commit details
    Browse the repository at this point in the history
  8. a

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    1805cb2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d2e2e23 View commit details
    Browse the repository at this point in the history
  10. capitalize Flutter

    st-pasha committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    560dd4c View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Configuration menu
    Copy the full SHA
    a624018 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    4037bcb View commit details
    Browse the repository at this point in the history
  2. game-in-game example

    st-pasha committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    2e92194 View commit details
    Browse the repository at this point in the history
  3. trailing commas

    st-pasha committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    d838f52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7aa2c1 View commit details
    Browse the repository at this point in the history
  5. fix mounting

    st-pasha committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    6fe90f7 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. melos bs

    Pasha Stetsenko authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    b62481c View commit details
    Browse the repository at this point in the history
  2. docs: Clarify required flutter channel on CONTRIBUTING guidelines (#2376

    )
    
    Clarify required flutter channel on CONTRIBUTING guidelines
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    f4a6963 View commit details
    Browse the repository at this point in the history
  3. refactor: Remove unused variable "tapTimes" from multi_touch_tap_dete…

    …ctor_test.dart (#2379)
    
    This is a cleanup identified on this issue: #2308
    Using an amazing unused-code tooling
    Now, since Flame is a public API, unused code might not be trivial - it might just mean untested code.
    
    This one was a no-brainer -- the variable was clearly replaced by specific counters during the writing of the test and forgotten there:
    
      int nOnTapDown = 0;
      int nOnLongTapDown = 0;
      int nOnTapUp = 0;
      int nOnTap = 0;
      int nOnTapCancel = 0;
    
    It wasn't even increment and the taps are already thoroughly tested more granularly
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    34a1fd5 View commit details
    Browse the repository at this point in the history
  4. test: Add test for the intersections test helper method (#2378)

    This is a cleanup identified on this issue: #2308
    Using an amazing unused-code tooling
    Now, since Flame is a public API, unused code might not be trivial - it might just mean untested code.
    
    In this case, we have a test helper, which is a public function we expose to help people write better tests.
    Which means that the function could be useful, it was just lacking a test -- so I added it.
    That being said, if this method is deemed unnecessary for users, I can just remove it instead - lmk.
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    62e45c7 View commit details
    Browse the repository at this point in the history
  5. refactor: Use variable name on toString in component_test.dart (#2377)

    This is a cleanup identified on this issue: #2308
    Using an amazing unused-code tooling
    Now, since Flame is a public API, unused code might not be trivial - it might just mean untested code.
    
    In this case, the unused code is in the tests, which likely means it is indeed necessary.
    I tried to infer the intent of the author here, and even considered adding the names of the components to the events, but the events are already always per component, so that was meaningless. I also thought it might be a missing toString, that they would wish to show the component name for debugging purposes, but I didn't see any asserts/logs on the component objects themselves (just the events).
    So I concluded there is no reason to keep this field, but lmk if anyone disagrees and I can bring it back and add some function to it.
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    da5ac3b View commit details
    Browse the repository at this point in the history
  6. refactor: Remove unused event "ScoreEventCleared" from flame_block ex…

    …ample (#2380)
    
    # Description
    
    This is a cleanup identified on this issue:
    #2308
    Using an amazing unused-code tooling
    Now, since Flame is a public API, unused code might not be trivial - it
    might just mean untested code.
    
    Since this an example package, it definitely should never have unused
    code.
    In this case, the constructor wasn't being used, but upon deeper
    investigation, that was because this particular event wasn't ever fired
    at all.
    So I removed it entirely. If this was supposed to be fired somewhere by
    the example, please lmk and I can add the missing firing.
    But as far as I can see, the event serves no purpose in this example.
    
    ## Checklist
    
    - [x] I have followed the [Contributor Guide] when preparing my PR.
    - [x] I have updated/added tests for ALL new/updated/fixed
    functionality.
    - [x] I have updated/added relevant documentation in `docs` and added
    dartdoc comments with `///`.
    - [x] I have updated/added relevant examples in `examples` or `docs`.
    
    ## Breaking Change?
    
    - [ ] Yes, this PR is a breaking change.
    - [x] No, this PR is not a breaking change.
    
    <!-- Links -->
    [Contributor Guide]:
    https://github.com/flame-engine/flame/blob/main/CONTRIBUTING.md
    [Conventional Commit]: https://conventionalcommits.org/
    [CHANGELOG]:
    https://github.com/flame-engine/flame/blob/main/CHANGELOG.md
    
    Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
    2 people authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4e964af View commit details
    Browse the repository at this point in the history
  7. chore: Standardize and unify SDK versions across packages (#2374)

    # Description
    
    This does two things:
    
    ## Use double quotes for SDK constraints
    
    Standardize the usage of single or double quotes to specify sdk
    constraints across pubspecs
    I see no reason this should not be kept consistent
    I also see no reason to prefer one over the other, so I searched the
    code base and there are 7 instances of single quote vs 32 of double
    quotes, so I favored the later
    
    ## Update all SDK constraints to 2.18
    
    Let me know if there are any issues with it, but I believe we should
    keep this consistent across all packages.
    Also there is a pubspec on root which imply all should be on 2.18
    anyway.
    
    ## Checklist
    
    - [x] I have followed the [Contributor Guide] when preparing my PR.
    - [x] I have updated/added tests for ALL new/updated/fixed
    functionality.
    - [x] I have updated/added relevant documentation in `docs` and added
    dartdoc comments with `///`.
    - [x] I have updated/added relevant examples in `examples` or `docs`.
    
    ## Breaking Change?
    
    - [ ] Yes, this PR is a breaking change.
    - [x] No, this PR is not a breaking change.
    
    <!-- Links -->
    [Contributor Guide]:
    https://github.com/flame-engine/flame/blob/main/CONTRIBUTING.md
    [Conventional Commit]: https://conventionalcommits.org/
    [CHANGELOG]:
    https://github.com/flame-engine/flame/blob/main/CHANGELOG.md
    
    Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
    2 people authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    002383d View commit details
    Browse the repository at this point in the history
  8. docs: Remove outdated index of contents from packages/README (#2375)

    This list was wildly outdated. I could updated it but after
    consideration I thought there was no value to list the directory
    structure that was already represented in the github view.
    
    Happy to pivot to just updating it though if there are preferences.
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    10aa5e9 View commit details
    Browse the repository at this point in the history
  9. test: Add test for two subsequent state changes to flame_multi_bloc_p…

    …rovider_test.dart (#2381)
    
    This is a cleanup identified on this issue: #2308
    Using an amazing unused-code tooling
    Now, since Flame is a public API, unused code might not be trivial - it might just mean untested code.
    
    In this case, it is a test file, so there should definitely be no unused code.
    However analyzing the unused code revealed to me some intent of testing multiple subsequent state changes (dead -> raise from dead).
    I believe such test was missing entirely, so I added it. I think it holds value, but lmk if you disagree I can just delete the test and the method.
    luanpotter authored and st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    775de23 View commit details
    Browse the repository at this point in the history
  10. docs: Break out overlays docs (#2384)

    The docs for overlays were a bit hard to find so I broke them out to its
    own section.
    They could need some some updating too with more examples and
    instructions.
    st-pasha committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    b4b8b7c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1690d0c View commit details
    Browse the repository at this point in the history