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

Introduce WidgetStateBorderSide.lerp #148122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TahaTesser
Copy link
Member

@TahaTesser TahaTesser commented May 10, 2024

fixes Consolidate _LerpSides classes with WigetStateProperty<BorderSide?> type into a new WidgetStateBorderSide.lerp

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels May 10, 2024
@TahaTesser TahaTesser marked this pull request as ready for review May 10, 2024 12:01
@TahaTesser TahaTesser changed the title Introduce `WidgetStateBorderSide.lerp Introduce WidgetStateBorderSide.lerp May 10, 2024
return BorderSide.lerp(resolvedA, BorderSide(width: 0, color: resolvedA.color.withAlpha(0)), t);
}
return BorderSide.lerp(resolvedA, resolvedB, t);
return MaterialStateBorderSide.lerp(a, b, t);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since MaterialStateBorderSide is a typedef now, should we not be using WidgetStateBorderSide directly here?

Copy link
Member Author

Choose a reason for hiding this comment

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

MaterialStateBorderSide and MaterialState are still widely used in the material library, not deprecated for the source code so I'm keeping this consistency.

When MaterialState is deprecated period is over then this would be replaced in the material library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate _LerpSides classes with WigetStateProperty<BorderSide?> type into a new WidgetStateBorderSide.lerp
2 participants