chore: upgrade to flutter 3.19.0 (#4677)

* chore: upgrade to flutter 3.19.0

* chore: adjust to the latest flutter convention

* chore: update CI flutter version

* fix: flutter analyze

* fix: flutter analyze

* fix: flutter analyze

* chore: fix docker build
This commit is contained in:
Lucas.Xu
2024-02-19 12:49:55 +07:00
committed by GitHub
parent b2e55c4e2e
commit 252699d249
83 changed files with 286 additions and 407 deletions

View File

@ -34,9 +34,8 @@ class _GridChecklistCellState extends State<ChecklistCellEditor> {
void initState() {
super.initState();
newTaskFocusNode = FocusNode(
onKey: (node, event) {
if (event is RawKeyDownEvent &&
event.logicalKey == LogicalKeyboardKey.escape) {
onKeyEvent: (node, event) {
if (event.logicalKey == LogicalKeyboardKey.escape) {
node.unfocus();
return KeyEventResult.handled;
}
@ -170,9 +169,8 @@ class _ChecklistItemState extends State<ChecklistItem> {
super.initState();
_textController = TextEditingController(text: widget.task.data.name);
_focusNode = FocusNode(
onKey: (node, event) {
if (event is RawKeyDownEvent &&
event.logicalKey == LogicalKeyboardKey.escape) {
onKeyEvent: (node, event) {
if (event.logicalKey == LogicalKeyboardKey.escape) {
node.unfocus();
return KeyEventResult.handled;
}