Conversation
| import 'package:flutter/material.dart'; | ||
| import 'package:google_fonts/google_fonts.dart'; | ||
| import 'package:social_media/screens/postcard.dart'; | ||
| import 'package:social_media/screens/profile.dart'; |
| mainAxisAlignment: MainAxisAlignment.center, | ||
| children: [ | ||
| Container( | ||
| width: MediaQuery.of(context).size.width / 1.1, |
There was a problem hiding this comment.
The width of the container is set to 1.1, which might not be responsive on all devices. Consider using MediaQuery.of(context).size.width * 0.9 or a similar fraction to ensure responsiveness across various screen sizes.
| setState(() { | ||
| posts[index].Likedpost = !posts[index].Likedpost; | ||
| });ScaffoldMessenger.of(context).showSnackBar( | ||
| SnackBar( |
There was a problem hiding this comment.
the snack bar that will show doesn't have a set deration(timer) it's better to give it a set deration in the code
arwaalkhathlan
left a comment
There was a problem hiding this comment.
great project i was so impressed by it.
your code was clean but for future projects utilize comments to make it more readable.
also u can use ctrl+s to hot reload and it will organize your code.
but overall you have great skills i loved your project!!
| String profilepic = 'assets/post9.jpg'; | ||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Scaffold(backgroundColor: Colors.black,appBar: AppBar( iconTheme: IconThemeData(color: Colors.green), |
There was a problem hiding this comment.
You've set the icon theme for the AppBar using IconThemeData(color: Colors.green). However, you're not actually using any icons in the AppBar. If you intend to use icons in the AppBar, make sure to add them. If not, this line is useless you can remove it.
| body: Column( | ||
| crossAxisAlignment: CrossAxisAlignment.center, | ||
| children: [ | ||
| const SizedBox(height: 10,), |
There was a problem hiding this comment.
there no point of this sized box you can remove it for a cleaner code.
| children: [ | ||
| const SizedBox(height: 10,), | ||
| Padding( | ||
| padding: const EdgeInsets.only(left: 20.0), |
There was a problem hiding this comment.
try replacing it with this instead it will look better
padding: const EdgeInsets.only(
top: 50, bottom: 20, left: 20, right: 20),
try replacing it with this instead it will look better
I've developed a social media application featuring four main pages: Home, Search, Profile, and Notifications.


In the Home page, users can browse through posts and stories shared by others, and like the posts.
Notifications keep users updated on activities related to their posts, such as receiving likes.
The Profile section provides users with an overview of their own posts and personal information.