rive-flutter
rive-flutter copied to clipboard
Linear Gradient Error
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
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;