Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<plist version="1.0">
<dict>
...
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
```

To enable network access on Android, ensure that your `AndroidManifest.xml`
file contains the following:


```xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
...
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
```

- **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`.

Expand Down
12 changes: 2 additions & 10 deletions lib/src/views/chat_message_view/adaptive_copy_text.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down