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

Linear Gradient Error #318

Open
umitmutluu opened this issue May 25, 2023 · 1 comment
Open

Linear Gradient Error #318

umitmutluu opened this issue May 25, 2023 · 1 comment
Labels
enhancement New feature or request triage

Comments

@umitmutluu
Copy link

You are using a class named 'LinearGradint' inside the Paint directory, and this class is causing a problem when using 'LinearGradient'. I don't want to hide the data in your library by using 'hide', so it shouldn't be too difficult to change the name of the class

@umitmutluu umitmutluu added the bug Something isn't working label May 25, 2023
@HayesGordon
Copy link
Contributor

Hi @umitmutluu, thanks for raising the issue.

We'll keep this issue in mind for a future release to avoid naming conflicts for anything exposed in both the Flutter library and Rive. But changing the name will require a breaking change, and a deprecation of the LinearGradient class in our library, which will take some time.

For now the best is to use hide or a prefix, such as: import 'package:rive/rive.dart' as rive;

@HayesGordon HayesGordon added enhancement New feature or request and removed bug Something isn't working labels May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

2 participants