Upgrade dependencies after upgrade Flutter 3.22.2

This commit is contained in:
DatDang
2024-07-09 11:32:42 +07:00
committed by Dat H. Pham
parent 1b70226c0f
commit e8eb67bf63
58 changed files with 552 additions and 326 deletions
@@ -149,7 +149,7 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
child: FocusScope(
child: Focus(
onFocusChange: (focus) => widget.onFocusEmailAddressChangeAction?.call(widget.prefix, focus),
onKey: PlatformInfo.isWeb ? _recipientInputOnKeyListener : null,
onKeyEvent: PlatformInfo.isWeb ? _recipientInputOnKeyListener : null,
child: StatefulBuilder(
builder: (context, stateSetter) {
if (PlatformInfo.isWeb || widget.isTestingForWeb) {
@@ -230,7 +230,7 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
},
);
},
onAccept: (draggableEmailAddress) => _handleAcceptDraggableEmailAddressAction(draggableEmailAddress, stateSetter),
onAcceptWithDetails: (draggableEmailAddress) => _handleAcceptDraggableEmailAddressAction(draggableEmailAddress.data, stateSetter),
onLeave: (draggableEmailAddress) {
if (_isDragging) {
stateSetter(() => _isDragging = false);
@@ -382,8 +382,8 @@ class _RecipientComposerWidgetState extends State<RecipientComposerWidget> {
);
}
KeyEventResult _recipientInputOnKeyListener(FocusNode node, RawKeyEvent event) {
if (event is RawKeyDownEvent && event.logicalKey == LogicalKeyboardKey.tab) {
KeyEventResult _recipientInputOnKeyListener(FocusNode node, KeyEvent event) {
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.tab) {
widget.nextFocusNode?.requestFocus();
widget.onFocusNextAddressAction?.call();
return KeyEventResult.handled;