Trying to develop an open source social media app

Overview

Social Media App (नाम में क्या रखा है :P)

Getting Started

To run this Project you'll need an account on the Supbase.

  1. After creating an account run below query from the Supabase SQL editor to create required table.

Create a table for Public Profiles

create table profiles (
  id uuid references auth.users not null,
  updated_at timestamp with time zone,
  user_name text unique,
  avatar_url text,
  email text,
  name text,
  about text,

  primary key (id),
  unique(user_name)
);

create policy "Public profiles are viewable by everyone."
  on profiles for select
  using ( true );

create policy "Users can insert their own profile."
  on profiles for insert
  with check ( auth.uid() = id );

create policy "Users can update own profile."
  on profiles for update
  using ( auth.uid() = id );

-- Set up Storage!
insert into storage.buckets (id, name)
values ('avatars', 'avatars');

create policy "Avatar images are publicly accessible."
  on storage.objects for select
  using ( bucket_id = 'avatars' );

create policy "Anyone can upload an avatar."
  on storage.objects for insert
  with check ( bucket_id = 'avatars' );
  1. After successfully running above query get the Base url and Base key and pass it to the command line args. while running flutter app.
flutte run --dart-define=BASE_URL=supabase_base_url --dart-define=BASE_KEY=supabase_base_key

That's it! You'll be able to run this app, Ping me if you stuck on any step.

Let's create an open source alternative of the social media apps out there together.

Generating files

  • flutter pub run build_runner build

If code generation fails, consider running it with the flag --delete-conflicting-outputs

Design Credit

https://www.figma.com/proto/pVVxJrrPmgo2OR2D5yEj0o/dianfei-SocialAppUIKit-Updated-(Community)?node-id=25%3A1577&scaling=min-zoom

Comments
  • Unable to Sign Up due to `id` non-null constraint violated

    Unable to Sign Up due to `id` non-null constraint violated

    Describe the bug After successful installation of app and creation of database, unable to Sign Up due to id non-null constraint violated.

    To Reproduce Steps to reproduce the behavior:

    1. Go to 'Sign Up' tab
    2. Fill details - email, password and confirm password
    3. Click SignUp button
    4. See error in terminal

    Expected behavior A row must be created with newly registered profile

    Screenshots Screenshot 2021-07-25 at 2 13 32 PM

    Smartphone (please complete the following information):

    • Device: iPhone12 Simulator
    • OS: iOS 14.4

    Additional context Profile table is created in Supabase

    opened by TechieBlossom 7
  • Unable to Sign up while running on simulator

    Unable to Sign up while running on simulator

    Describe the bug Running debug build on simulator, I can see the main screen. I get this error "flutter: Error: {data: null, status: 403, error: {message: new row violates row-level security policy for table "profiles", details: null, hint: null, code: 42501}, count: null}" when I click on Signup after filling in email, password .

    To Reproduce Steps to reproduce the behavior:

    1. Download repo to local
    2. Implement everything on Read me (connecting to supabase, build run)
    3. Run the app on the Simulator.
    4. Go to Sign Up
    5. Fill email, password, confirm password
    6. Click Signup button

    Expected behavior Sign up should complete and proceed to the next screen. Instead it gets stuck on this screen and I see an error message in the console.

    flutter: Error: {data: null, status: 403, error: {message: new row violates row-level security policy for table "profiles", details: null, hint: null, code: 42501}, count: null}
    

    Screenshots The screen where error is showing up. Screenshot 2021-07-22 at 6 31 27 PM

    Smartphone (please complete the following information): Simulator - iPhone 12 Pro Max

    opened by deepu 6
  • Conflict with  dart:io and package:universal_io/io.dart in file Profile_screen_store

    Conflict with dart:io and package:universal_io/io.dart in file Profile_screen_store

    Describe the bug There is a Conflict with dart:io and package:universal_io/io.dart in file Profile_screen_store because of which the application is not starting up

    To Reproduce Just run the application by Flutter run

    Screenshots

    error_open
    opened by ishan0805 1
  • Show proper validation messages and snack bar for the errors

    Show proper validation messages and snack bar for the errors

    • Extension Method for the BuildContext to show snackbar,
    • Proper validation for the login and sign up fields,
    • Show a SnackBar whenever there's an error while sending data to DB (while doing login/sign up).
    enhancement 
    opened by ibhavikmakwana 0
  • Add launcher app icons and splash screen UI with icon.

    Add launcher app icons and splash screen UI with icon.

    PR for Issue #6

    Changes made:

    • Added logo.svg to be used on Splash Screen

    WhatsApp Image 2021-07-26 at 9 40 50 AM


    • Added Launcher icons using flutter_launcher_icons: ^0.9.1 for Android and iOS.

    WhatsApp Image 2021-07-26 at 9 41 05 AM

    enhancement 
    opened by adityathakurxd 0
  • Addition of upload icon or a default profile picture

    Addition of upload icon or a default profile picture

    Is your feature request related to a problem? Please describe. If a user doesn't have a profile picture a blue colored background is being displayed . Instead of this a proper upload background should be displayed.

    Describe the solution you'd like A proper upload background should be displayed on exception .

    opened by ishan0805 0
  • The Project uses deprecated properties

    The Project uses deprecated properties

    Describe the bug The project uses some deprecated properties which need to be migrated to the current version

    To Reproduce Steps to reproduce the behavior: flutter analyze would give the issues

    opened by ishan0805 2
Owner
Bhavik Makwana
Flutter Enthusiast | Software Engineer | Speaker | Blogger | Google Certified Associate Android Developer
Bhavik Makwana
This is a simple flutter project of mine that i was trying to learn state managment in flutter with GetX.

managment This is my flutter project about state managment with GetX Getting Started This project is a starting point for a Flutter application. A few

Sarwar Murshed Shatil 4 Jul 9, 2022
Familicious-App - A social media app built with Flutter and Firebase

Famlicious App A social media app built with Flutter and Firebase This project i

Pham Quoc Duy 6 Dec 6, 2022
💘 This is my Youtube tutorial of my Social Media App Generation Made in Flutter 💘

?? Generation Tutorial ?? ⌛ This is the project source code of my youtube video tutorial of ⌛ ?? Flutter Social Media App Tutorial 2021 ?? ?? Tutorial

Samarpan Dasgupta 17 Nov 24, 2022
Social media app which is made entirely with flutter and firebase

Post It Android Please replace my googleservice.json with yours. Post it is a social media app which is made entirely with flutter and firebase. The u

Saket D Shetty 96 Dec 18, 2022
(Full-stack) Fully functional social media app (Instagram clone) written in flutter and dart with backend node.js and Postgres SQL.

Photoarc A Fully functional social media app written in flutter and dart using node.js and Postgres SQL as backend. Backend Repository Demo Download t

Ansh rathod 59 Jan 5, 2023
A fully functional social media app built with flutter with multiple features

?? ?? Wooble Social Media App Wooble is a fully functional social media app with multiple features built with flutter and dart. Star ⭐ the repo if you

Success Charles 562 Jan 3, 2023
Flutter Ghana UI Challenge Week 1 - Social Media App

Flutter Ghana UI Challenge Week 1 - Social Media App A Flutter UI implementation of a Social Media App inspired by Outcroud's desgin on Dribble. Star

Emmanuel Fache 104 Aug 11, 2022
Aio-project-flutter - All in one Social Media App getting developed using flutter

All in one Social Media App Getting built using flutter & firebase Add your sugg

Saffron Dionysius 8 Nov 17, 2022
Kenso - A fully functional social media app with multiple features built with flutter and dart

Kenso - Social Media App Kenso is a fully functional social media app with multi

null 0 Feb 8, 2022
Creating complete social media app like instagram, facebook using flutter dart.

instoo The social media application that allows user to check out new feed, like, comment and even check other user’s profile. It has search, follow,

Pratul Pant 9 Dec 1, 2022
A platform to make your social media experience more safe

cyber_watch A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Waleed Umar 0 Feb 25, 2022
🏃‍♂️🎽social media with a sports flavour

Welcome to Runbhumi ?? A Flutter app which aims to build a sports community ?? Homepage ✨ Prototype ?? Motivation/Inspiration ?? Install flutter pub g

Runbhumi 111 Nov 22, 2022
A Flutter package for generating sign in buttons for different social media accounts.

Sign In Button A Flutter plugin for generating sign in buttons for different social media accounts. Getting Started You must add the library as a depe

null 42 Dec 8, 2022
Flutter package to share images on social media

social_share Wide variety of sharing options you'll need to share directly to certain popular apps or just share with default native share. Introducti

Shekar Mudaliyar 74 Dec 8, 2022
This is just the simplyfied Flutter Plugin use for one of the popular flutter plugin for social media login.

social_media_logins Flutter Plugin to login via Social Media Accounts. Available Social Media Logins: Facebook Google Apple Getting Started To use thi

Reymark Esponilla 3 Aug 24, 2022
Social app flutter blocs - A social app using flutter blocs

social_app Do kiến thức mình của mình đi cóp nhặt nên có một số chức năng mình l

Puddin 8 Oct 2, 2022
Social network - Social networking application with Flutter

Social Network Social networking application with Flutter

Abolfazl Zarei 9 Mar 12, 2022
Federico 1 Feb 3, 2022