fix IDTextEditingController extra character

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-29 13:47:59 +08:00
parent 0a29fa87f0
commit 61a48b5367
2 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ class IDTextInputFormatter extends TextInputFormatter {
selection: TextSelection.collapsed(
offset: newID.length - selectionIndexFromTheRight,
),
// https://github.com/flutter/flutter/issues/78066#issuecomment-797869906
composing: newValue.composing,
);
}
}