Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Last active October 4, 2020 11:47
Show Gist options
  • Save TechieBlossom/82453dd41fa5c044624448565080e422 to your computer and use it in GitHub Desktop.
Save TechieBlossom/82453dd41fa5c044624448565080e422 to your computer and use it in GitHub Desktop.
class AnimatedMovieCardWidget extends StatelessWidget {
//1
final int index;
final PageController pageController;
final int movieId;
final String posterPath;
const AnimatedMovieCardWidget({
Key key,
@required this.index,
@required this.movieId,
@required this.posterPath,
@required this.pageController,
}) : super(key: key);
@override
Widget build(BuildContext context) {
//2
return MovieCardWidget(
movieId: movieId,
posterPath: posterPath,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment