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
@@ -364,6 +364,12 @@ class ComposerController extends BaseController with DragDropFileMixin implement
}
});
});
if (richTextWebController != null) {
ever(richTextWebController!.formattingOptionsState, (_) {
richTextWebController!.editorController.setFocus();
});
}
}
void _listenBrowserTabRefresh() {
@@ -462,7 +468,7 @@ class ComposerController extends BaseController with DragDropFileMixin implement
bccAddressFocusNodeKeyboard = FocusNode();
subjectEmailInputFocusNode = FocusNode(
onKey: PlatformInfo.isWeb ? _subjectEmailInputOnKeyListener : null
onKeyEvent: PlatformInfo.isWeb ? _subjectEmailInputOnKeyListener : null,
);
subjectEmailInputFocusNode?.addListener(_subjectEmailInputFocusListener);
}
@@ -479,8 +485,8 @@ class ComposerController extends BaseController with DragDropFileMixin implement
}
}
KeyEventResult _subjectEmailInputOnKeyListener(FocusNode node, RawKeyEvent event) {
if (event is RawKeyDownEvent && event.logicalKey == LogicalKeyboardKey.tab) {
KeyEventResult _subjectEmailInputOnKeyListener(FocusNode node, KeyEvent event) {
if (event is KeyDownEvent && event.logicalKey == LogicalKeyboardKey.tab) {
richTextWebController?.editorController.setFocus();
return KeyEventResult.handled;
}
@@ -51,14 +51,14 @@ class FromComposerDropDownWidgetStyle {
offset: const Offset(0.0, -8.0),
scrollbarTheme: ScrollbarThemeData(
radius: const Radius.circular(40.0),
thickness: MaterialStateProperty.all<double>(6.0),
thumbVisibility: MaterialStateProperty.all<bool>(true),
thickness: WidgetStateProperty.all<double>(6.0),
thumbVisibility: WidgetStateProperty.all<bool>(true),
)
);
static MenuItemStyleData menuIemStyleData = MenuItemStyleData(
padding: const EdgeInsets.symmetric(horizontal: 12),
height: 72,
overlayColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) => Colors.white)
overlayColor: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) => Colors.white)
);
static const TextStyle prefixTextStyle = TextStyle(
@@ -58,8 +58,8 @@ class DropDownMenuHeaderStyleWidget extends StatelessWidget {
offset: const Offset(0.0, -8.0),
scrollbarTheme: ScrollbarThemeData(
radius: const Radius.circular(40),
thickness: MaterialStateProperty.all<double>(6),
thumbVisibility: MaterialStateProperty.all<bool>(true),
thickness: WidgetStateProperty.all<double>(6),
thumbVisibility: WidgetStateProperty.all<bool>(true),
)
),
menuItemStyleData: MenuItemStyleData(
@@ -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;
@@ -65,7 +65,7 @@ class AttachmentDropZoneWidget extends StatelessWidget {
),
);
},
onAccept: onAttachmentDropZoneListener
onAcceptWithDetails: (details) => onAttachmentDropZoneListener?.call(details.data),
);
}
}