Documentation Index
Fetch the complete documentation index at: https://mintlify.com/juuaaann456/DMI-Practica06/llms.txt
Use this file to discover all available pages before exploring further.
MovieSlideshow is a StatelessWidget that renders a full-width swipeable carousel of movie backdrops. It uses the card_swiper package to produce an auto-playing slideshow with dot-based pagination. The active dot color is driven by the current theme’s primary color.
The widget is rendered at a fixed height of 210 px and reads from the movieSlideShowProvider on the home screen, which supplies the first six now-playing movies.
Constructor
Parameters
The list of
Movie entities whose backdropPath URLs are displayed as slides. Each slide is rendered as a rounded-corner image card with a drop shadow.Behavior
- Slides advance automatically (
autoplay: true). - The visible slide takes up 80 % of the viewport width (
viewportFraction: 0.8); adjacent slides are scaled to 90 % (scale: 0.9), giving a depth effect. - Tapping a slide does not navigate — navigation is not wired in this widget. Use
MovieHorizontalListviewwhen you need tap-to-detail behavior. - Dot pagination is rendered below the slides and aligns to the bottom of the
SizedBox.
Each
Movie must have a non-empty backdropPath. The widget calls Image.network directly without a fallback, so broken URLs will show Flutter’s default broken-image placeholder.Usage example
The following excerpt is taken fromhome_screen.dart. The provider filters the now-playing list down to the first several movies used as featured slides.
Source location
lib/presentation/widgets/movies/movie_slideshow.dart