ask_bubble_ai 1.5.1
ask_bubble_ai: ^1.5.1 copied to clipboard
A premium floating AI chat bubble widget for Flutter. Easily embed a chatbot assistant powered by Gemini, OpenAI, Claude, DeepSeek, and OpenRouter with custom styling, streaming, and navigation.
1.5.1 #
- Interactive Copy Button Feedback: Added dynamic checkmark icon (
Icons.check_rounded) feedback when clicking the inline copy button on chat bubbles. Reverts back to copy icon after 2 seconds. - Enabled copy button for both user and assistant chat bubbles.
- Comply with pub.dev limits by restricting
topicslist to 5 items inpubspec.yaml.
1.5.0 #
- OpenRouter provider support: Added
AskAiProvider.openRouteras a fifth AI provider option. OpenRouter is a unified API gateway that gives access to hundreds of models from OpenAI, Anthropic, Meta, Mistral, Google, and more through a single OpenAI-compatible endpoint (openrouter.ai/api/v1/chat/completions) withBearertoken authentication. - Includes recommended
HTTP-RefererandX-Titleheaders as per OpenRouter API guidelines. - Default model for OpenRouter must be specified via
modelName(e.g.openai/gpt-4o,anthropic/claude-sonnet-4-5,meta-llama/llama-3.3-70b-instruct). - Updated
pubspec.yamldescription, version, and topics to includeopenrouter. - Updated
README.mdwith OpenRouter API key instructions, provider table, and configuration property descriptions.
1.4.1 #
- Minor fixes and corrections.
1.4.0 #
- DeepSeek provider support: Added
AskAiProvider.deepSeekas a fourth AI provider option. Uses DeepSeek's OpenAI-compatible Chat Completion API (api.deepseek.com) withBearertoken authentication. - Default model for DeepSeek is
deepseek-v4-flash(overridable viamodelName). - Updated
pubspec.yamldescription and topics to includedeepseek. - Updated
README.mdwith DeepSeek API key instructions, provider table, and configuration property descriptions. - Updated example app to demonstrate the DeepSeek provider option.
1.3.9 #
- Issues fixed and README.md updated.
1.3.8 #
- Some corrections made.
1.3.7 #
- Some issues fixed and README.md updated.
1.3.6 #
- Fixed markdown formatting in
README.mdto ensure the License section is displayed as a separate section instead of inside a code block.
1.3.5 #
- Updated screenshot paths in
README.mdto use direct hosted image URLs, resolving display issues on pub.dev. - Simplified markdown parser logic in
AskAiPanelby removing a redundant ternary expression. - Set the default provider to Gemini in the example application to align with the default environment key and model configuration.
1.3.4 #
- Fixed pub.dev image rendering compatibility by replacing absolute raw GitHub URLs (which fail on private repositories) with a standard Markdown table using relative local package paths (
assets/).
1.3.3 #
- Fixed README screenshots not displaying on pub.dev due to private/moved repository URL paths by changing image paths to local package-relative directories (
assets/).
1.3.2 #
- Added high-quality screenshots to
README.mdto showcase the customizable UI of the floating chat bubble and assistant panel. - Secured example app API key using
String.fromEnvironmentand configured a.envtemplate local configuration (with.gitignorerules).
1.3.1 #
- Added
avatarWidget: Widget?toAskAiHeaderStyle. When set, it fully replaces the default icon inside the circular avatar container, allowing any widget (e.g.Image.asset,Image.network, a logo, or aStackcombining an icon + badge) to be used as the assistant avatar. Falls back toavatarIconwhen not provided.
1.3.0 #
- Gemini streaming responses: Gemini provider now streams tokens in real-time for a live-typing effect inside the chat panel.
- Inline markdown rendering: AI responses now render
**bold**,*italic*, and- bullet listsyntax correctly inside message bubbles. - Message timestamps: Each message bubble shows a
HH:MMtimestamp below it (toggle viashowTimestampsparameter). - Copy to clipboard: Long-press any message bubble to copy its text to the system clipboard.
- Multi-line input: The text input field now expands up to 4 lines for longer messages before scrolling.
- Auto-focus input: The text field is focused automatically when the chat panel opens.
bubbleStyleparameter: NewAskAiBubbleStylemodel lets you customize the floating button's background, icon, label color, border, and border radius.initiallyOpenparameter: Optionally start the widget with the panel already open.showTimestampsparameter: Toggle message timestamp visibility.maxTokensparameter: Configure the maximum response token budget for any provider (Gemini, OpenAI, Claude).- Status indicator: Header subtitle dynamically shows "Thinking…" while a response is in-progress and reverts to "Active" when idle.
- Disabled reset during loading: The reset button is disabled while a response is streaming to prevent state corruption.
- Tooltip on bubble button: Added a tooltip to the floating bubble button for accessibility.
1.2.0 #
- Resolved include warning for
flutter_lintsin the example package analysis configuration. - Added bubble minimization and cancel handle features to the README documentation.
1.1.0 #
- Added capability to minimize the floating bubble button.
- Added close/cancel button to trigger minimization.
- Added widget and unit tests verifying minimization states.
1.0.0 #
- Complete documentation coverage of public API.
- Restructured library entrypoint export.
- Fixed analyzer lints and unnecessary library name warnings.
- Added detailed provider support and widget layout enhancements.
0.0.1 #
- Initial release of
ask_bubble_ai. - Added the floating AI chat bubble widget
AskBubbleAi. - Integrated Google Gemini AI capabilities via the
google_generative_aiSDK. - Supported contextual grounding with custom knowledge base/FAQs document (
brainDocument). - Added session context awareness via user metadata mapping (
userDetails). - Implemented structured
[NAVIGATE:route|text]parsing for in-app page redirection buttons. - Added welcome screen with customizable quick question suggestion chips.
- Built beautiful dark and light mode UI matching premium design standards.