summaryrefslogtreecommitdiff
path: root/lib/widgets/popular_item.dart
blob: 7e8cc2c85bb04a0fb9d7e3ea9acad0c0b6d6c96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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!}',
      ),
    );
  }
}