Skip to content

Feat/chat app ai studio refactor#58

Merged
leehack merged 2 commits intomainfrom
feat/chat-app-ai-studio-refactor
Feb 21, 2026
Merged

Feat/chat app ai studio refactor#58
leehack merged 2 commits intomainfrom
feat/chat-app-ai-studio-refactor

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented Feb 21, 2026

This pull request introduces several updates to the chat app demo, focusing on UI/UX improvements, new model and conversation settings, and codebase organization. The most notable changes include enhancements to theming and layout, expanded configuration options for chat models, and the addition of a new ChatConversation model. Below are the most important changes grouped by theme:

UI/UX Improvements:

  • Updated the main app theme in main.dart to use new color schemes, switched to the Manrope font, set dark mode as default, and replaced the home screen with AppShellScreen for a more modern look and feel. [1] [2]
  • Refactored ChatScreen to simplify the layout: removed the custom app bar, adjusted background gradients and widget positioning, and improved scroll behavior for smoother user experience. [1] [2] [3] [4] [5] [6]
  • Added a link to the chat app demo in the README.md.

Model and Conversation Configuration:

  • Expanded ChatSettings and ModelPreset to support additional parameters such as minP, penalty, numberOfThreads, numberOfThreadsBatch, thinkingEnabled, thinkingBudgetTokens, and singleTurnMode, allowing for more granular control of model behavior. [1] [2] [3] [4] [5] [6] [7]

Codebase Organization:

  • Introduced a new ChatConversation model to encapsulate conversation state, including messages, settings, and metadata.
  • Cleaned up imports and improved navigation logic in chat_screen.dart, including support for custom model selection callbacks and navigation to a new ManageModelsScreen. [1] [2] [3]

These changes collectively improve the flexibility, maintainability, and user experience of the chat app demo.

Align the chat example with an AI Studio-style layout and conversation-scoped controls while tightening tool-followup behavior and web ergonomics.
@leehack leehack merged commit 2e9d0d5 into main Feb 21, 2026
6 of 7 checks passed
@leehack leehack deleted the feat/chat-app-ai-studio-refactor branch February 21, 2026 03:10
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.37%. Comparing base (3cd126f) to head (0898768).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   76.37%   76.37%           
=======================================
  Files          65       65           
  Lines        7915     7915           
=======================================
  Hits         6045     6045           
  Misses       1870     1870           
Flag Coverage Δ
unittests 76.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants