Skip to content

Commit

Permalink
Merge pull request #7 from sendbird/v1.0.0-beta.3
Browse files Browse the repository at this point in the history
Add 1.0.0-beta.3.
  • Loading branch information
sf-tyler-jeong authored Jul 4, 2024
2 parents 12e061a + 423514a commit d4e5869
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v1.0.0-beta.3 (Jul 4, 2024)

### Improvements
- Updated dependency range for `intl` package from `^0.18.1` to `>=0.18.1 <1.0.0`
- Renamed `customMessageSender` to `customMessageInput`

## v1.0.0-beta.2 (Jun 14, 2024)

### Improvements
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Add following dependencies and fonts for `SendbirdIcons` in `pubspec.yaml`.

```yaml
dependencies:
sendbird_uikit: ^1.0.0-beta.2
sendbird_chat_sdk: ^4.2.16
sendbird_uikit: ^1.0.0-beta.3
sendbird_chat_sdk: ^4.2.19

flutter:
fonts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ import 'package:sendbird_uikit/src/internal/component/basic/sbu_text_component.d
import 'package:sendbird_uikit/src/internal/provider/sbu_message_collection_provider.dart';
import 'package:sendbird_uikit/src/internal/resource/sbu_text_styles.dart';

class SBUMessageSenderComponent extends SBUStatefulComponent {
class SBUMessageInputComponent extends SBUStatefulComponent {
final int messageCollectionNo;
final Color backgroundColor;

const SBUMessageSenderComponent({
const SBUMessageInputComponent({
required this.messageCollectionNo,
required this.backgroundColor,
super.key,
});

@override
State<StatefulWidget> createState() => SBUMessageSenderComponentState();
State<StatefulWidget> createState() => SBUMessageInputComponentState();
}

class SBUMessageSenderComponentState extends State<SBUMessageSenderComponent> {
class SBUMessageInputComponentState extends State<SBUMessageInputComponent> {
final textEditingController = TextEditingController();
final textFieldFocusNode = FocusNode();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import 'package:sendbird_uikit/src/internal/component/basic/sbu_placeholder_comp
import 'package:sendbird_uikit/src/internal/component/basic/sbu_scroll_bar_component.dart';
import 'package:sendbird_uikit/src/internal/component/basic/sbu_text_component.dart';
import 'package:sendbird_uikit/src/internal/component/module/sbu_header_component.dart';
import 'package:sendbird_uikit/src/internal/component/module/sbu_message_input_component.dart';
import 'package:sendbird_uikit/src/internal/component/module/sbu_message_list_item_component.dart';
import 'package:sendbird_uikit/src/internal/component/module/sbu_message_sender_component.dart';
import 'package:sendbird_uikit/src/internal/provider/sbu_message_collection_provider.dart';
import 'package:sendbird_uikit/src/internal/resource/sbu_text_styles.dart';

Expand Down Expand Up @@ -55,7 +55,7 @@ class SBUGroupChannelScreen extends SBUStatefulComponent {
SBUTheme theme,
SBUStrings strings,
MessageCollection collection,
)? customMessageSender;
)? customMessageInput;

final Widget Function(
BuildContext context,
Expand Down Expand Up @@ -97,7 +97,7 @@ class SBUGroupChannelScreen extends SBUStatefulComponent {
this.cacheExtent = defaultCacheExtent,
this.customHeader,
this.customListItem,
this.customMessageSender,
this.customMessageInput,
this.customLoadingBody,
this.customEmptyBody,
this.customErrorScreen,
Expand Down Expand Up @@ -407,8 +407,8 @@ class SBUGroupChannelScreenState extends State<SBUGroupChannelScreen>
))
: list ?? widget.getDefaultContainer(isLightTheme));

final messageSender = collection != null
? SBUMessageSenderComponent(
final messageInput = collection != null
? SBUMessageInputComponent(
messageCollectionNo: collectionNo!,
backgroundColor:
isLightTheme ? SBUColors.background50 : SBUColors.background600,
Expand Down Expand Up @@ -445,14 +445,14 @@ class SBUGroupChannelScreenState extends State<SBUGroupChannelScreen>
),
collection == null
? widget.getDefaultContainer(isLightTheme)
: widget.customMessageSender != null
? widget.customMessageSender!(
: widget.customMessageInput != null
? widget.customMessageInput!(
context,
theme,
strings,
collection,
)
: messageSender ?? widget.getDefaultContainer(isLightTheme),
: messageInput ?? widget.getDefaultContainer(isLightTheme),
],
),
if (collection?.channel.isFrozen ?? false)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/public/sendbird_uikit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:sendbird_uikit/src/internal/utils/sbu_preferences.dart';
/// SendbirdUIKit
class SendbirdUIKit {
/// UIKit version
static const version = '1.0.0-beta.2';
static const version = '1.0.0-beta.3';

SendbirdUIKit._();

Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sendbird_uikit
description: With Sendbird UIKit for Flutter, you can easily build an in-app chat with all the essential messaging features.
version: 1.0.0-beta.2
version: 1.0.0-beta.3
homepage: https://sendbird.com
repository: https://github.com/sendbird/sendbird-uikit-flutter
documentation: https://sendbird.com/docs/chat # TODO
Expand All @@ -17,9 +17,9 @@ dependencies:
flutter:
sdk: flutter

sendbird_chat_sdk: ^4.2.16
sendbird_chat_sdk: ^4.2.19
provider: ^6.1.2
intl: ^0.18.1
intl: '>=0.18.1 <1.0.0'
collection: ^1.18.0
cached_network_image: ^3.3.1
shared_preferences: ^2.2.3
Expand Down

0 comments on commit d4e5869

Please sign in to comment.