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

Can't set begin and end properties for linear gradient with VxBox #46

Closed
jitendrapurohit12 opened this issue Nov 27, 2020 · 2 comments
Closed

Comments

@jitendrapurohit12
Copy link

jitendrapurohit12 commented Nov 27, 2020

Like normal BoxDecoration, we can't set the start and end of the linear gradient. It's always set from left-center to right-center.

To Reproduce
VxBox().linearGradient(
[
Colors.black.withOpacity(0.8),
Colors.black.withOpacity(0)
],
).make(),

  • OS: Android, iOS
@jitendrapurohit12
Copy link
Author

Though I used .withGradient which works perfectly but having all Linear Gradient properties will help imo.

@iampawan
Copy link
Owner

Hey @jitendrapurohit12 thanks for your first issue. VelocityX was made with general usecases first in mind like .linearGradient with the most used way rather than exposing everything which makes it a tough job. Rather I decided to give full control using something like .withGradient or .withDecoration so that if those general use cases don't match they you can customize it. But I'll look for more such feedbacks and would love to add these in future. Closing for now.

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

No branches or pull requests

2 participants