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

support custom of ScaleAndFadeTransformer in SwiperLayout.DEFAULT #111

Open
lemoclone opened this issue Jul 30, 2019 · 0 comments
Open

support custom of ScaleAndFadeTransformer in SwiperLayout.DEFAULT #111

lemoclone opened this issue Jul 30, 2019 · 0 comments

Comments

@lemoclone
Copy link

lemoclone commented Jul 30, 2019

The only option now are scale both in X and Y, but sometimes scale only in X is also needed.
Currently this can be done by:
transformer: new ScaleAndFadeTransformer2(fade: 0.3,scale: 0.95), scale: null, fade: null,
And set the transform as following:
child = Transform( transform: Matrix4.identity()..scale(0.96, 1.0, 1.0), alignment: Alignment.center, transformHitTests: false, child: item, );

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

1 participant