AI Chat Assistant App UI

An AI chat assistant app UI in Flutter: a curved ribbon header, streaming answers with charts, voice mode, search by image, plans and chat history, in light and dark.

  • #AI Chat
  • #Chat App
  • #Slivers
  • #CustomPainter
  • #Animations
  • #Dark Mode

The full source code is in the Flutter Source Club · $9/month.

3 developers in the club

AI Chat Assistant App UI preview

Overview

An AI chat assistant app UI for Flutter: ask a question, get the answer word by word, see numbers turn into a bar chart, talk to the assistant with your voice or point the camera at something and ask what it is. The brand is Ondi, a made-up assistant with a mint and peach look, and everything in the app is drawn with Flutter widgets and painters.

The screens

Home (a header with a curved text ribbon, the model picker, a greeting, three shortcut cards and the recent chats), Chat (messages, streaming answers, a bar chart card and a tool rail), Talk with Ondi (voice mode with a living orb), Search by Image (a viewfinder with a scanning line and an answer sheet), Ondi+ Plans, Welcome to Ondi+, Chat History (search, filters and chats grouped by day) and Profile with settings, plus a catalog that lists every screen.

The details

The text on the Home ribbon keeps moving along its curve, and the header collapses into a small bar when you scroll; the Ask bar at the bottom hides while you scroll down and comes back when you scroll up. Tapping the model chip opens a sheet with three models, and the menu on a recent chat lets you pin, share or delete it (with Undo). In the chat, typing dots come first, then the answer streams in word by word and the bars of the chart grow one after the other. The + button turns into a rail with image, voice and ideas tools. The voice orb changes its shape and colour with the conversation: listening, thinking and talking, while the words appear as they are spoken. On the image search screen the shutter flashes, points appear on the plant and the answer slides up. On the plans screen the ribbon header collapses into a title bar, picking a plan changes the price on the Subscribe button, and subscribing opens a welcome page with confetti. In the history you can swipe a chat away and bring it back with Undo, and the dark mode switch in the profile changes the whole app right away.

How it is built

No packages, just Flutter. Every scrolling screen is a CustomScrollView: custom SliverPersistentHeader delegates for the ribbon headers (they stretch when you pull down and clip their art to the header), SliverAppBar.large with a pinned search field, SliverList and SliverFillRemaining. The curved ribbon text, the orb, the viewfinder and the confetti are drawn with CustomPainter. All colours live in one ThemeExtension with a light and a dark set, so you can re-brand the app by changing a few values. A small ChangeNotifier keeps the chats, the chosen model and the plan, and every screen has a named route that opens on its own with sample data.

What you can learn from it

- Drawing text along a curve with CustomPainter and animating it - A collapsing header with SliverPersistentHeader that never paints over the content - Streaming a chat answer word by word and animating a bar chart - An animated voice orb that changes with the state of the conversation - A hide-on-scroll bar with UserScrollNotification - Swipe to delete with Undo, bottom sheets and a plan picker - Light and dark themes with a ThemeExtension

The full source code is part of the Flutter Source Club, together with the code of every other project from my videos.

Watch the build

Keep exploring

  • Reaction Picker Animation in Flutter preview
    Social & Chat UISource Club

    Reaction Picker Animation in Flutter

    A community feed with a long-press reaction picker in Flutter: an arc of reactions, slide to choose, and the reaction flies into the pill with a rolling count.

    • #Animation
    • #Reactions
    • #Long Press
  • Social Media Profile Screen UI in Flutter preview
    Social & Chat UI

    Social Media Profile Screen UI in Flutter

    A bright social media profile screen built in Flutter, with a profile header, post and friend counts, Photos/Videos/Saved tabs, a photo grid and a custom bottom nav bar.

    • #Profile
    • #Social Media
    • #Photo Grid
  • Chat App Messages Screen UI in Flutter preview
    Social & Chat UI

    Chat App Messages Screen UI in Flutter

    A modern chat list screen built in Flutter, with a green header, story-style avatars, tabs, unread badges and swipe-to-reveal actions on messages.

    • #Chat
    • #Messaging
    • #Chat List