From bfeafc3bea5a1e837cb57cec7724b32a22ff98a9 Mon Sep 17 00:00:00 2001 From: Alex Demchenko Date: Tue, 31 Aug 2021 15:00:51 +0200 Subject: [PATCH] Update dependencies --- CHANGELOG.md | 5 +++++ doc/advanced-usage.md | 4 ++-- example/lib/main.dart | 4 ++-- example/pubspec.yaml | 2 +- pubspec.yaml | 6 +++--- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0fb7077..16c262d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.3.1 + +- Rename `buildCustomMessage` to `customMessageBuilder` +- Update dependencies + ## 1.3.0 - Chat is now correctly rendered in not full screen mode. Removed `SafeArea` from the lib itself, wrap `Chat` component if needed. Thanks @m-j-g for reporting! diff --git a/doc/advanced-usage.md b/doc/advanced-usage.md index 60869714..9b41a191 100644 --- a/doc/advanced-usage.md +++ b/doc/advanced-usage.md @@ -90,7 +90,7 @@ class _MyHomePageState extends State { id: randomString(), name: result.files.single.name, size: result.files.single.size, - uri: result.files.single.path ?? '', + uri: result.files.single.path, ); _addMessage(message); @@ -291,7 +291,7 @@ class _MyHomePageState extends State { id: randomString(), name: result.files.single.name, size: result.files.single.size, - uri: result.files.single.path ?? '', + uri: result.files.single.path, ); _addMessage(message); diff --git a/example/lib/main.dart b/example/lib/main.dart index 296dd3e1..9604fa12 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -103,10 +103,10 @@ class _ChatPageState extends State { author: _user, createdAt: DateTime.now().millisecondsSinceEpoch, id: const Uuid().v4(), - mimeType: lookupMimeType(result.files.single.path ?? ''), + mimeType: lookupMimeType(result.files.single.path), name: result.files.single.name, size: result.files.single.size, - uri: result.files.single.path ?? '', + uri: result.files.single.path, ); _addMessage(message); diff --git a/example/pubspec.yaml b/example/pubspec.yaml index dab8c2e7..9757a561 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.3 - file_picker: ^4.0.0 + file_picker: ^4.0.1 flutter_chat_ui: path: ../ image_picker: ^0.8.3+3 diff --git a/pubspec.yaml b/pubspec.yaml index c430082f..c37f23f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_chat_ui description: > Actively maintained, community-driven chat UI implementation with an optional Firebase BaaS. -version: 1.3.0 +version: 1.3.1 homepage: https://flyer.chat repository: https://github.com/flyerhq/flutter_chat_ui @@ -15,8 +15,8 @@ dependencies: sdk: flutter diffutil_dart: ^2.0.0+1 equatable: ^2.0.3 - flutter_chat_types: ^3.0.0 - flutter_link_previewer: ^2.4.0 + flutter_chat_types: ^3.0.1 + flutter_link_previewer: ^2.4.1 intl: ^0.17.0 meta: ^1.3.0 photo_view: ^0.12.0