Create a Figma Clone app with Flutter and Supabase Realtime
A collaborative design canvas, a simplified Figma, built by combining Supabase Realtime Broadcast for low-latency client-to-client messaging with Flutter's CustomPainter for low-level canvas rendering. Users can draw circles and rectangles, drag them around, and see each other's cursors live, while canvas state persists to a Postgres table of JSONB objects behind simple RLS policies. The walkthrough covers project setup, a SyncedObject class hierarchy with JSON serialization and hit-testing, and a custom painter that renders cursors and shapes. Auth is skipped and users get random UUIDs.
Related posts
- Making a Real-Time Chat App with Supabase on Replit
Replit mediumAdeptA real-time public chat app can be built with a Vue 3 and Tailwind CSS frontend on Replit backed by Supabase's hosted Postgres. The walkthrough creates a messages table via SQL, enables replication-based real-time events, and wraps the supabase-js client in a Vue composable. That composable handles paginated message loading by range, INSERT subscriptions for live updates, and inserts for sending. Users are identified only by a random username stored in localStorage, and older messages load when the list is scrolled to the top.
- Flutter Tutorial: building a Flutter chat app
Supabase mediumAdeptA real-time single-room chat app can be built with Flutter on the frontend and Supabase as the entire backend, using the supabase_flutter SDK instead of a custom API. The walkthrough creates profiles and messages tables in Postgres with username validation constraints, adds the messages table to the supabase_realtime publication for live updates, initializes the Supabase client, routes users via a splash page based on auth session, and defines Dart data models plus a registration page. Authentication and row-level security are deferred to a second part.
- Flutter Authorization with RLS
Supabase mediumAdeptExtends a basic Flutter real-time chat app into a 1-on-1 chat with authorization enforced by PostgreSQL Row Level Security on Supabase. The schema adds rooms and room_participants tables, a room_id foreign key on messages, and a security-definer plpgsql function create_new_room that returns an existing room for two users or creates one. The client side uses flutter_bloc cubits to stream room participants and each room's latest message via Supabase realtime. Email confirmation is handled through deep links configured in iOS Info.plist, AndroidManifest.xml and the Supabase redirect URL settings.
- How Figma draws inspiration from the gaming world
Figma easyNovice
Figma's architecture resembles a game engine more than a typical web stack: a C++ canvas compiled to WebAssembly for 2D rendering, a React/TypeScript UI layer, and a Rust multiplayer server, plus layered systems for multiplayer, animation, collisions, chat and plugins. Because these systems are interdependent, bugs cross boundaries; a layout change from six months earlier made FigJam connectors oscillate between clients, flooding multiplayer messages and overloading autosave. Making FigJam tables collaborative without locking required resolving concurrent edits and adding an animation system so observers can follow row and column moves.
- Designing with AI: Generating unique artwork for every user
Supabase mediumAdeptSupabase's Launch Week 7 tickets combine Midjourney-generated artwork with a per-user Open Graph image pipeline built on the Supabase stack. The art direction moved from busy prompts to minimal purple swirls. Gold variants came from blending a gold gradient overlay with `/blend` after prompts like "make it gold" failed. A Supabase Edge Function renders each ticket with Satori and caches the PNG in Supabase Storage behind a CDN, generating it only once. The same function detects Twitter and LinkedIn crawler user agents to record shares. A Postgres view behind RLS exposes public ticket fields, referral counts and a computed `golden` flag, and Supabase Realtime pushes the gold status to the client as users share.