diff --git a/README.md b/README.md index 927911f..4618624 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ This repo contains projects and samples developed by the team and Stream communi - [Stream Chat v1](https://github.com/GetStream/flutter-samples/tree/main/stream_chat_v1): a sample app implemented using Stream Chat and Flutter. It is a fully fledged messaging app built using a combination of our pre-made widgets and custom Flutter widgets. +- [iMessage clone](https://github.com/GetStream/flutter-samples/tree/main/imessage): an iMessage clone implemented using Flutter and the `stream_chat_flutter_core` package. + ## Requirements 🛠 Before running this project please ensure Flutter is installed and configured on your machine. If you're new to Flutter, please checkout the [official guide](https://flutter.dev/docs/get-started/install) with installation instructions for your OS. diff --git a/imessage/lib/message_input.dart b/imessage/lib/message_input.dart index cbd29f0..9d9d831 100644 --- a/imessage/lib/message_input.dart +++ b/imessage/lib/message_input.dart @@ -81,11 +81,11 @@ class _MessageInputState extends State { }, child: Padding( padding: const EdgeInsets.all(8.0), - child: textController.text.isNotEmpty - ? Icon(CupertinoIcons.arrow_up_circle_fill, - color: CupertinoColors.activeGreen, size: 35) - : Icon(CupertinoIcons.exclamationmark_circle_fill, - color: CupertinoColors.systemRed, size: 35), + child: Icon( + CupertinoIcons.arrow_up_circle_fill, + color: CupertinoColors.activeGreen, + size: 35, + ), ), ), decoration: BoxDecoration( diff --git a/imessage/pubspec.yaml b/imessage/pubspec.yaml index c95b2b3..62e7507 100644 --- a/imessage/pubspec.yaml +++ b/imessage/pubspec.yaml @@ -24,12 +24,7 @@ dependencies: flutter: sdk: flutter intl: ^0.16.1 - #stream_chat_flutter: ^1.2.0-beta - stream_chat_flutter: - git: - url: git://github.com/GetStream/stream-chat-flutter.git - path: packages/stream_chat_flutter - ref: develop + stream_chat_flutter: ^1.3.0-beta animations: ^1.0.0+5 collection: ^1.14.13 cached_network_image: ^2.0.0-rc