Skip to content

[Bug]: SegmentedButton doesn't animate correctly on resize #312

@rawi-coding

Description

@rawi-coding

Preflight Checklist

Bug type

Other

Which release are you using?

3.0.0

Flutter SDK version

3.27.4

Additional settings

No response

Expected

The SegmentedButton should correctly animate the selection when resizing.

What happened?

The selection is not correctly during the animation and jumps in the end. This is noticable for the user also when the animation is quicker. Here is a video: (... sorry for the music didn't see that it records audio too 😄 )

Bildschirmaufnahme.2025-05-07.um.08.40.46.mov

Steps to reproduce the issue

Add an SegmentedButton to a Widget that changes the width in an animation.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Funnel

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions