From c9f38293935f7b0b7e9b6942f598aa2dd57406cd Mon Sep 17 00:00:00 2001 From: Chris Sells Date: Fri, 28 Mar 2025 17:41:36 -0700 Subject: [PATCH 1/3] v0.7.0: prepping for release --- CHANGELOG.md | 16 ++++++++++++++++ pubspec.yaml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c6f753..7e4988d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 0.7.0 + +* fixed [#55](https://github.com/flutter/ai/issues/55): The input field does + not unfocus on iPhone simulator + +* fixed [#52](https://github.com/flutter/ai/issues/52): Make Chat Input + Configurable to Disable Attachments and Voice Notes + +* fixed [#63](https://github.com/flutter/ai/issues/63): update all samples to + use the 2.0 flash model + +* fixed [#49](https://github.com/flutter/ai/issues/49): pub publish has warnings + +* fixed [#61](https://github.com/flutter/ai/issues/61): [test] add a smoke test + + ## 0.6.8 * Require Dart 3.5 or later. diff --git a/pubspec.yaml b/pubspec.yaml index 95fd2f6d..d2252538 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_ai_toolkit description: >- A set of AI chat-related widgets for Flutter apps targeting mobile, desktop, and web. -version: 0.6.8 +version: 0.7.0 repository: https://github.com/flutter/ai topics: From 4502cdd570b42530e7aa402ca11b9f56ce642d71 Mon Sep 17 00:00:00 2001 From: Chris Sells Date: Fri, 28 Mar 2025 18:47:04 -0700 Subject: [PATCH 2/3] README updates (fix for #66) --- README.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 002bec3b..f98dfc2c 100644 --- a/README.md +++ b/README.md @@ -214,17 +214,43 @@ the AI toolkit in to your own applications. 4. **Set up device permissions** - To enable your users to take advantage of features like - voice input and media attachments, - ensure that your app has the necessary permissions: + To enable your users to take advantage of features like voice input and + media attachments, ensure that your app has the necessary permissions: + + - **Network access:** + To enable network access on macOS, add the following to your + `*.entitlements` files: + +```xml + + + ... + com.apple.security.network.client + + + +``` + + To enable network access on Android, ensure that your `AndroidManifest.xml` + file contains the following: + + +```xml + + ... + + +``` - **Microphone access:** To enable voice input for users, update configs according to the [permission and setup instructions][record-setup] for `package:record`. + - **File selection:** To enable users to select and attach files, follow the [usage instructions][file-setup] for `package:file_selector`. - **Image selection:** + To enable users to take or select a picture from their device, refer to the [installation instructions][image-setup] for `package:image_picker`. From f0c320fcaab34e71e87098faf3a710a23aab04a3 Mon Sep 17 00:00:00 2001 From: Chris Sells Date: Mon, 31 Mar 2025 08:04:29 -0700 Subject: [PATCH 3/3] remove unnecessary Localizations wrapper in AdaptiveCopyText --- .../views/chat_message_view/adaptive_copy_text.dart | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/src/views/chat_message_view/adaptive_copy_text.dart b/lib/src/views/chat_message_view/adaptive_copy_text.dart index 82c6ee6e..3e86c6c2 100644 --- a/lib/src/views/chat_message_view/adaptive_copy_text.dart +++ b/lib/src/views/chat_message_view/adaptive_copy_text.dart @@ -1,7 +1,6 @@ import 'dart:async'; -import 'package:flutter/material.dart' - show DefaultMaterialLocalizations, SelectionArea; +import 'package:flutter/material.dart' show SelectionArea; import 'package:flutter/widgets.dart'; import 'package:flutter_context_menu/flutter_context_menu.dart'; @@ -64,13 +63,6 @@ class AdaptiveCopyText extends StatelessWidget { // on desktop and web, show the selection area for mouse-driven selection. return isMobile ? ContextMenuRegion(contextMenu: contextMenu, child: child) - : Localizations( - locale: Localizations.localeOf(context), - delegates: const [ - DefaultWidgetsLocalizations.delegate, - DefaultMaterialLocalizations.delegate, - ], - child: SelectionArea(child: child), - ); + : SelectionArea(child: child); } }