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: Add advanced button component #2742

Merged
merged 65 commits into from Oct 10, 2023

Conversation

denisgl7
Copy link
Contributor

@denisgl7 denisgl7 commented Sep 18, 2023

Description

New button with support for multiple states:
image

Checklist

  • I have followed the [Contributor Guide] when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • No, this PR is not a breaking change.

@denisgl7 denisgl7 changed the title add advanced button component feat!: add advanced button component Sep 18, 2023
@denisgl7 denisgl7 changed the title feat!: add advanced button component feat!: Add advanced button component Sep 18, 2023
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This is not a breaking change, so you don't need the exclamation mark on feat!.

@denisgl7 denisgl7 changed the title feat!: Add advanced button component feat: Add advanced button component Sep 18, 2023
Copy link
Member

@erickzanardo erickzanardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, but we need a test for this new component.

@spydon
Copy link
Member

spydon commented Sep 18, 2023

Changes LGTM, but we need a test for this new component.

And docs, and a small example :)

@denisgl7
Copy link
Contributor Author

Changes LGTM, but we need a test for this new component.

And docs, and a small example :)

It's clear here.
But how to write tests for a component? Where can I see an example?

@spydon
Copy link
Member

spydon commented Sep 18, 2023

@denisgl7 here is an example of a component test, there are lots in that directory that you can have a look at:
https://github.com/flame-engine/flame/blob/main/packages/flame/test/components/button_component_test.dart

doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
doc/flame/inputs/other_inputs.md Outdated Show resolved Hide resolved
denisgl7 and others added 22 commits October 9, 2023 16:02
…t.dart

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

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

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

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

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

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

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

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

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

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

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

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! Lgtm (except the minor change with the golden test)

@denisgl7 denisgl7 force-pushed the add_advanced_button_component branch from afd6e57 to fde43a6 Compare October 10, 2023 06:13
@spydon spydon merged commit 97fff0e into flame-engine:main Oct 10, 2023
8 checks passed
@denisgl7 denisgl7 deleted the add_advanced_button_component branch October 31, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants