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.
MovieHorizontalListview is a StatefulWidget that renders a row of movie poster cards in a horizontal ListView. It is the primary list component on the home screen and appears once for each movie category (now playing, upcoming, popular, top-rated, and Mexican cinema).
The widget is rendered at a fixed height of 360 px. Each card is 150 × 215 px and shows the movie poster, title, star rating, and popularity score. Tapping a poster navigates to /movie/<id> via GoRouter. Poster images fade in using the animate_do package.
Constructor
Parameters
The list of
Movie entities to display. Each item is rendered as a poster card with title, rating, and popularity.Optional heading displayed in the top-left of the list header row. When both
title and subTitle are null, the header row is omitted entirely.Optional secondary label displayed as a filled tonal button in the top-right of the header row. Typically used for a date or time range (e.g.
"Lunes 27 de Octubre").Optional callback invoked when the user scrolls within 200 px of the end of the list. Use this to implement infinite pagination. When
null, no additional pages are loaded.Infinite scroll behavior
The widget attaches aScrollController in initState. On every scroll event it checks:
loadNextPage before the user actually reaches the end of the list, producing a seamless loading experience. The controller is disposed in dispose to avoid memory leaks.
Usage examples
The home screen renders five independent instances of this widget, each backed by its own Riverpod provider:Source location
lib/presentation/widgets/movies/movie_horizontal_listview.dart