diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-03-26 21:04:58 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-03-26 21:04:58 -0600 |
commit | 4b7d33896879baba1435281f814766a80fbeecb2 (patch) | |
tree | 9cc37361f5a8ccffa5a4c4da20120b54b1649d69 /lib/widgets/popular_item.dart | |
parent | 68d54a5660e1c6651a604b078e78a2658ca61ea1 (diff) | |
download | pmsna1-4b7d33896879baba1435281f814766a80fbeecb2.tar.gz pmsna1-4b7d33896879baba1435281f814766a80fbeecb2.tar.bz2 pmsna1-4b7d33896879baba1435281f814766a80fbeecb2.zip |
Added popular movies screen and Firebase support
Diffstat (limited to 'lib/widgets/popular_item.dart')
-rw-r--r-- | lib/widgets/popular_item.dart | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/widgets/popular_item.dart b/lib/widgets/popular_item.dart new file mode 100644 index 0000000..7e8cc2c --- /dev/null +++ b/lib/widgets/popular_item.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; +import 'package:pmsna1/models/popular.dart'; + +class PopularItem extends StatelessWidget { + final Popular popular; + + const PopularItem(this.popular, {super.key}); + + @override + Widget build(BuildContext context) { + return FadeInImage( + placeholder: const AssetImage('assets/loading.gif'), + image: NetworkImage( + 'https://image.tmdb.org/t/p/w500/${popular.posterPath!}', + ), + ); + } +} |