Skip to content

Commit

Permalink
Fixes after PR
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Jul 22, 2021
1 parent c65d7d1 commit a418bea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.9

- Add `sendingIcon` widget to the theme. Thanks @abhisunkewar for the PR!
- Update dependencies

## 1.1.8

- Update dependencies and example
Expand Down
16 changes: 8 additions & 8 deletions lib/src/chat_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ abstract class ChatTheme {
required this.receivedMessageLinkTitleTextStyle,
required this.secondaryColor,
required this.seenIcon,
required this.sendingIcon,
required this.sendButtonIcon,
required this.sendingIcon,
required this.sentMessageBodyTextStyle,
required this.sentMessageCaptionTextStyle,
required this.sentMessageDocumentIconColor,
Expand Down Expand Up @@ -149,12 +149,12 @@ abstract class ChatTheme {
/// Icon for message's `seen` status. For the best look use size of 16.
final Widget? seenIcon;

/// Icon for message's `sending` status. For the best look use size of 16.
final Widget? sendingIcon;

/// Icon for send button
final Widget? sendButtonIcon;

/// Icon for message's `sending` status. For the best look use size of 10.
final Widget? sendingIcon;

/// Body text style used for displaying text on different types
/// of sent messages
final TextStyle sentMessageBodyTextStyle;
Expand Down Expand Up @@ -256,8 +256,8 @@ class DefaultChatTheme extends ChatTheme {
),
Color secondaryColor = SECONDARY,
Widget? seenIcon,
Widget? sendingIcon,
Widget? sendButtonIcon,
Widget? sendingIcon,
TextStyle sentMessageBodyTextStyle = const TextStyle(
color: NEUTRAL_7,
fontFamily: 'Avenir',
Expand Down Expand Up @@ -324,8 +324,8 @@ class DefaultChatTheme extends ChatTheme {
receivedMessageLinkTitleTextStyle: receivedMessageLinkTitleTextStyle,
secondaryColor: secondaryColor,
seenIcon: seenIcon,
sendingIcon: sendingIcon,
sendButtonIcon: sendButtonIcon,
sendingIcon: sendingIcon,
sentMessageBodyTextStyle: sentMessageBodyTextStyle,
sentMessageCaptionTextStyle: sentMessageCaptionTextStyle,
sentMessageDocumentIconColor: sentMessageDocumentIconColor,
Expand Down Expand Up @@ -409,8 +409,8 @@ class DarkChatTheme extends ChatTheme {
),
Color secondaryColor = SECONDARY_DARK,
Widget? seenIcon,
Widget? sendingIcon,
Widget? sendButtonIcon,
Widget? sendingIcon,
TextStyle sentMessageBodyTextStyle = const TextStyle(
color: NEUTRAL_7,
fontFamily: 'Avenir',
Expand Down Expand Up @@ -477,8 +477,8 @@ class DarkChatTheme extends ChatTheme {
receivedMessageLinkTitleTextStyle: receivedMessageLinkTitleTextStyle,
secondaryColor: secondaryColor,
seenIcon: seenIcon,
sendingIcon: sendingIcon,
sendButtonIcon: sendButtonIcon,
sendingIcon: sendingIcon,
sentMessageBodyTextStyle: sentMessageBodyTextStyle,
sentMessageCaptionTextStyle: sentMessageCaptionTextStyle,
sentMessageDocumentIconColor: sentMessageDocumentIconColor,
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_chat_ui
description: >
Actively maintained, community-driven chat UI implementation with an
optional Firebase BaaS.
version: 1.1.8
version: 1.1.9
homepage: https://flyer.chat
repository: https://github.com/flyerhq/flutter_chat_ui

Expand All @@ -15,11 +15,11 @@ dependencies:
sdk: flutter
diffutil_dart: ^2.0.0+1
equatable: ^2.0.3
flutter_chat_types: ^2.4.0
flutter_link_previewer: ^2.2.1
flutter_chat_types: ^2.4.1
flutter_link_previewer: ^2.2.3
intl: ^0.17.0
meta: ^1.3.0
photo_view: ^0.11.1
photo_view: ^0.12.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit a418bea

Please sign in to comment.