mirrored_repositories/Flutter-UI-Clones/instagram/lib/presentation/screens/exploreScreen
import 'package:flutter/material.dart';

import 'package:instagram/core/models/post.model.dart';

class ExploreTile extends StatelessWidget {
  const ExploreTile({
    Key? key,
    required this.post,
  }) : super(key: key);
  final Post post;

  @override
  Widget build(BuildContext context) {
    return Stack(
      alignment: Alignment.topRight,
      children: [
        Image(
          image: NetworkImage(post.imgUrl),
        ),
        Container(
          padding: EdgeInsets.all(8),
          child: Icon(
            post.id == '0' || post.id == '10'
                ? Icons.collections_rounded
                : null,
            color: Colors.white,
          ),
        )
      ],
    );
  }
}
