This is the frontend of Social Garbage, a Flutter-based social platform that integrates real-time backend APIs, Google Sign-In authentication, content creation, notifications, and moderation features.
Social Garbage is designed as a modern social platform with integrated content safety checks. The frontend is built using Flutter, with seamless API integration for posts, user profiles, authentication, notifications, and search functionality.
- Google Sign-In authentication with Supabase integration
- Create, like, dislike, and comment on posts
- Search posts with filters (Safe / Under Review / Flagged)
- Notifications with swipe-to-dismiss support
- Bottom navigation bar and state preservation
- API integration with backend services for real-time data
- Flutter SDK installed
- Android Studio / VS Code with Flutter extensions
- Backend server running (update the
baseUrlinlib/api_client.dart)
git clone https://github.com/shivam-purve/social_garbage.git
cd social_garbage
###3.) Install Dependencies
flutter pub get
###4.) Configure Base URL
In lib/api_client.dart, update the kBaseUrl constant with your backend API URL:
const String kBaseUrl = 'http://10.0.2.2:8000'; // Android Emulator
// or
const String kBaseUrl = '(https://hive-backend-tnmw.onrender.com)'; // Localhost (desktop/web)
5.) Run the App
flutter run
Folder Structure
Folder Structure
lib/
├──
│ └── api_client.dart # Base API client
├── services/
│ ├── auth_service.dart # Authentication API integration
│ ├── post_service.dart # Posts API (fetch, like, comment, create)
│ ├── search_service.dart # Search API integration
│ ├── user_service.dart # User profile API
│ └── notification_service.dart # Local notifications
├── widgets/
│ ├── post_card.dart # Post UI component
│ └── notification_widget.dart # Notification UI component
├── screens/
│ ├── home_screen.dart # Home feed
│ ├── user.dart # User profile screen
│ ├── notifs.dart # Notifications screen
│ ├── search.dart # Search screen
│ ├── create.dart # Create post screen
│ └── login.dart # Google Sign-In
└── main.dart # App entry pointDesigned UI Design in Figma
Developed UI Screens:
Login Screen
Create Screen
Notification Screen
Added Bottom Navigation Bar and App Bar with design and logic
Implemented API integration for authentication (Google Sign-In with Supabase)
Integrated User Profile screen API
API Integration:
Posts (fetch, like, dislike, comment)
Implemented and Configured Function to Integrate the All the Endpoints in the App
Added Notifications screen with local notification support
Implemented route management for multiple screens
Added state persistence for Bottom Navigation Bar
Fixed several routing and connection bugs
Developed UI Screens: Home Screen Comment Screen Search Screen Post Card Widget, Search Screen functionality with filters
social_garbage/ ├── lib/ ├── screenshots/ │ ├── login.png │ ├── home.png │ ├── create.png │ ├── search.png │ └── notifs.png
Clearly listing the technologies and tools used. Example:
Tech Stack used
- Framework: Flutter (Dart)
- State Management: Flutter's Stateful Widgets
- Routing: go_router
- Backend Integration: REST APIs
- Authentication: Supabase (Google Sign-In)
- Local Storage: SharedPreferences
- Notifications: flutter_local_notifications
- HTTP Client: http package
Document the endpoints you integrated with. Example:
- Auth
POST /auth/google→ Sign in with Google
- Posts
GET /posts→ Fetch all postsPOST /posts→ Create a new postPOST /posts/:id/like→ Like a postPOST /posts/:id/dislike→ Dislike a postPOST /posts/:id/comments→ Add comment
- User
GET /user/me→ Fetch current user profileGET /user/:id/posts→ Fetch posts by user
- Search
GET /posts?q=term&status=flagged→ Search posts with filters
Be transparent about current bugs or limitations. Example:
Known Issues
- API sometimes returns
401 Unauthorizedif access token expires. - Search filtering is partially handled on client-side due to backend limitations.
If you find this project useful, please consider giving it a on GitHub.
Your feedback and contributions are always welcome!
We would like to thank:
- Flutter for the cross-platform framework
- Supabase for authentication and backend support
- Google Cloud for OAuth and API integrations
This project was developed as part of a collaborative effort to explore real-time content safety and moderation in social platforms.





