mirrored_repositories/GoSocio/lib
import 'package:GoSocio/pages/post_screen.dart';
import 'package:GoSocio/widgets/custom_image.dart';
import 'package:GoSocio/widgets/post.dart';
import 'package:flutter/material.dart';

class PostTile extends StatelessWidget {
  final Post post;
  PostTile(this.post);

  showPost(context){
    Navigator.push(context, MaterialPageRoute(
      builder: (context) => PostScreen(
        postId: post.postId,
        userId: post.ownerId,
          ),
        ),
      );
  }
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap:null,//() => showPost(context),
      child: cachedNetworkImage(post.mediaUrl),
    );
  }
}
