Compare commits
2 Commits
83e92e2eed
...
c6594ea2ce
Author | SHA1 | Date | |
---|---|---|---|
c6594ea2ce
|
|||
3bec6e683e
|
@@ -73,10 +73,8 @@ class ChatInput extends HookConsumerWidget {
|
|||||||
final chatSubscribe = ref.watch(chatSubscribeNotifierProvider(chatRoom.id));
|
final chatSubscribe = ref.watch(chatSubscribeNotifierProvider(chatRoom.id));
|
||||||
|
|
||||||
void send() {
|
void send() {
|
||||||
|
inputFocusNode.requestFocus();
|
||||||
onSend.call();
|
onSend.call();
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
||||||
inputFocusNode.requestFocus();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void insertNewLine() {
|
void insertNewLine() {
|
||||||
@@ -539,6 +537,10 @@ class ChatInput extends HookConsumerWidget {
|
|||||||
onTapOutside:
|
onTapOutside:
|
||||||
(_) =>
|
(_) =>
|
||||||
FocusManager.instance.primaryFocus?.unfocus(),
|
FocusManager.instance.primaryFocus?.unfocus(),
|
||||||
|
textInputAction:
|
||||||
|
settings.enterToSend
|
||||||
|
? TextInputAction.send
|
||||||
|
: null,
|
||||||
onSubmitted:
|
onSubmitted:
|
||||||
settings.enterToSend ? (_) => send() : null,
|
settings.enterToSend ? (_) => send() : null,
|
||||||
);
|
);
|
||||||
|
@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 3.3.0+135
|
version: 3.3.0+136
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.7.2
|
sdk: ^3.7.2
|
||||||
|
Reference in New Issue
Block a user