Skip to content

Commit

Permalink
Downgrade intl
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed May 17, 2023
1 parent 9c0a712 commit 54c0433
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.6.8

- Downgrade `intl` to make it compatible with latest Flutter
- Add `autofocus` to the `InputOptions`. Thanks @josefwilhelm for the PR!

## 1.6.7

- **BREAKING CHANGE**: `nameBuilder` now passes the whole user class, instead of just an id. Thanks @vintage for the PR!
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies:
path: ../
http: ^0.13.6
image_picker: ^0.8.7+5
intl: ^0.18.1
intl: ^0.18.0
mime: ^1.0.4
open_filex: ^4.3.2
path_provider: ^2.0.15
Expand Down
10 changes: 5 additions & 5 deletions lib/src/widgets/input/input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ class _InputState extends State<Input> {
padding: textPadding,
child: TextField(
enabled: widget.options.enabled,
autofocus: widget.options.autofocus,
autocorrect: widget.options.autocorrect,
autofocus: widget.options.autofocus,
enableSuggestions: widget.options.enableSuggestions,
controller: _textController,
cursorColor: InheritedChatTheme.of(context)
Expand Down Expand Up @@ -254,9 +254,9 @@ class InputOptions {
this.sendButtonVisibilityMode = SendButtonVisibilityMode.editing,
this.textEditingController,
this.autocorrect = true,
this.autofocus = false,
this.enableSuggestions = true,
this.enabled = true,
this.autofocus = false,
});

/// Controls the [Input] clear behavior. Defaults to [InputClearMode.always].
Expand Down Expand Up @@ -287,12 +287,12 @@ class InputOptions {
/// Controls the [TextInput] autocorrect behavior. Defaults to [true].
final bool autocorrect;

/// Whether [TextInput] should have focus. Defaults to [false].
final bool autofocus;

/// Controls the [TextInput] enableSuggestions behavior. Defaults to [true].
final bool enableSuggestions;

/// Controls the [TextInput] enabled behavior. Defaults to [true].
final bool enabled;

/// Whether textfield should have focus. Defaults to [false].
final bool autofocus;
}
4 changes: 2 additions & 2 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.6.7
version: 1.6.8
homepage: https://flyer.chat
repository: https://github.com/flyerhq/flutter_chat_ui

Expand All @@ -18,7 +18,7 @@ dependencies:
flutter_chat_types: ^3.6.1
flutter_link_previewer: ^3.2.1
flutter_parsed_text: ^2.2.1
intl: ^0.18.1
intl: ^0.18.0
meta: ^1.9.1
photo_view: ^0.14.0
scroll_to_index: ^3.0.1
Expand Down

0 comments on commit 54c0433

Please sign in to comment.