-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Feature request] Ability to have light and shadow for png images with transparent layers. #9
Comments
Thank you for your suggestion 😄! @aytunch Is it something like this? There's a lot of code that needs to be changed, Demo.mp4 |
Wow, this is exactly what I was aiming for :D In my case, I don't use the |
Hi @AmosHuKe , |
Hi~ @aytunch I took some extra time. The way it is now, the principle is simple.
demo.mp4I've pushed it to https://github.com/fluttercandies/flutter_tilt/tree/feat-projector branch. # pubspec.yaml
flutter_tilt:
git:
url: https://github.com/fluttercandies/flutter_tilt.git
ref: feat-projector UsageDocument: feat-projector/README Tilt(
lightShadowMode: LightShadowMode.projector,
lightConfig: const LightConfig(
......
projectorScale: 1.1,
),
shadowConfig: const ShadowConfig(
......
projectorScaleFrom: 1.0,
projectorScaleTo: 1.0,
projectorBlurSigmaFrom: 5.0,
projectorBlurSigmaTo: 20.0,
),
child: ......
), |
Hi @AmosHuKe I wanted to try the PR but it requires Flutter 3.19 or later. Unfortunately the codebase I am working on hasn't been migrated to latest Flutter yet. |
@aytunch Thanks for your time, feel free to report. 😄 |
Platforms
iOS
Description
In the parallax example: https://amoshuke.github.io/flutter_tilt_book/#/ParallaxImage
you had to disable light and shadow because they are drawn as rectangles not as the png's border.
Can we solve it with this package or use another package to first make our png's more usable?
Thanks, the examples and documentation is great by the way.
Why
No response
The text was updated successfully, but these errors were encountered: