Skip to content

refactor: breaking changes for v4-rc#34

Draft
AmosHuKe wants to merge 3 commits intomainfrom
v4
Draft

refactor: breaking changes for v4-rc#34
AmosHuKe wants to merge 3 commits intomainfrom
v4

Conversation

@AmosHuKe
Copy link
Copy Markdown
Member

Description

Breaking changes

  • Tilt widget now only manages gesture state, sensor state, and animation state...
  • The previous Tilt.lightShadowMode parameter has been split into the independent widgets TiltBaseContainer and TiltProjectorContainer.
    To reproduce the previous style, you need to compose them inside the Tilt widget,
    or use Tilt.base and Tilt.projector directly.
  • ShadowConfig has been split into ShadowBaseConfig and ShadowProjectorConfig.

Deprecations

  • The lightConfig of TiltProjectorContainer is now deprecated.
    Because the current simulated light effect is not suitable for Projector,
    it is now disabled by default and will be removed in a future release.

New features

  • Add TiltAnimatedBuilder to help implement custom tilt logic.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).

  • I open this PR to the main branch.
  • I did not modify the CHANGELOG.md nor the package version in pubspec.yaml files.
  • All existing and new tests are passing.

Breaking Change

Does your PR require package users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@AmosHuKe AmosHuKe changed the title refactor: major breaking changes for v4 refactor: breaking changes for v4-rc Apr 15, 2026
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.

1 participant