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

change direction of stack widget #44

Open
mohamed6996 opened this issue Jan 17, 2019 · 4 comments
Open

change direction of stack widget #44

mohamed6996 opened this issue Jan 17, 2019 · 4 comments

Comments

@mohamed6996
Copy link

new Swiper(
  itemBuilder: (BuildContext context, int index) {
    return new Image.network(
      "http://via.placeholder.com/288x188",
      fit: BoxFit.fill,
    );
  },
  itemCount: 10,
  itemWidth: 300.0,
  layout: SwiperLayout.STACK,
)

In the built-in Layout ( layout: SwiperLayout.STACK), the default behavior is to swipe the top widget to the right to see the next one, and the the shadows of the below widgets is shown on the left. i want the reverse, swipe the top widget to left to see the next one and the shadow becomes in the right.
how to achieve this?

@congni congni mentioned this issue Feb 20, 2019
@naeem-hasan
Copy link

Any update to this one?

@mohamed6996
Copy link
Author

unfortunately, no response till now

@bhanuka96
Copy link

unfortunately, no response till now..waiting 1 year and 3 months

@mr1554
Copy link

mr1554 commented Jun 6, 2020

hi, you can use Transform.rotate ,
a sample is like this:

Container(
width: MediaQuery.of(context).size.width * 0.75,
child: Transform.rotate(
angle: 90 * pi/90,
child: Swiper(
itemBuilder: (BuildContext context, int index) {
return new Image.network(
"http://via.placeholder.com/288x188",
fit: BoxFit.fill,
);
},
itemCount: 10,
itemWidth: 300.0,
layout: SwiperLayout.STACK,
)
)
)

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

4 participants