rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

Linear Gradient Error

Open umitmutluu opened this issue 1 year ago • 1 comments

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 avatar May 25 '23 11:05 umitmutluu

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 avatar May 30 '23 08:05 HayesGordon