Skip to content

SpriteButton.placedInsets is not used #4067

Description

@Euan213

What happened?

the perameter placedInsets on the SpriteButton widget is not passed to InternalSpriteButton. This results in custom insets not being applies when a SpriteButton is pressed.

What do you expect?

when passing a custom value for pressedInsets into a SpriteButton widget the way that the label moves when the button is pressed should be altered, it is not.

How can we reproduce this?

create a SpriteButton widget and pass in any value of pressedInsets, that value has no effect on how the label is moved when the button is pressed.

What steps should take to fix this?

add
pressedInsets: pressedInsets
between lines 234 and 235 in main/packages/flame/lib/src/widgets/sprite_button.dart

Do have an example of where the bug occurs?

No response

Relevant log output

Execute in a terminal and put output into the code block below

Output of: flutter doctor -v

Affected platforms

All

Other information

No response

Are you interested in working on a PR for this?

  • I want to work on this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions