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
Overlapping parent #2
Comments
Hi @cloudygeek, Can you share your piece of code where you have used the flutter_carousel_widget in your application. I think this is not an issue. I would be happy to help you. Thanks. |
thanks
|
Hi @cloudygeek, Are you trying to show carousel in a single card?? |
Yes each card was going to have a carousel in it. Not sure why it isn't being constrained to the parent widgets size. |
return Padding(
padding: const EdgeInsets.all(12.0),
child: FlutterCarousel(
options: CarouselOptions(
height: 130.0,
showIndicator: false,
slideIndicator: CircularSlideIndicator(),
enableInfiniteScroll: true,
reverse: false,
autoPlay: true,
autoPlayInterval: Duration(seconds: 5),
autoPlayAnimationDuration: Duration(milliseconds: 800),
autoPlayCurve: Curves.fastOutSlowIn,
enlargeCenterPage: true,
enlargeStrategy: CenterPageEnlargeStrategy.height),
items: images.map((media) {
return Builder(
builder: (BuildContext context) {
return Card(
elevation: 6,
child: CachedNetworkImage(
imageUrl: media,
width: double.infinty,
));
},
);
}).toList(),
)); I think this will resolve your issue. |
no that doesn't fix it. |
Hi @cloudygeek Please elaorate your issue with more description and if required try to include piece of code as well as screenshot of your output. Thanks. |
Hi
The carousel widget is great and works really well with good options. but the basic constraining to the parent eg a Card, doesn't seem to work?
eg as shown here the carousel is overlapping the edges of the card shown in red lines.
any ideas?
thanks
The text was updated successfully, but these errors were encountered: