mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-28 21:30:18 +08:00
@@ -3280,13 +3280,7 @@ class EditableTextState extends State<EditableText>
|
||||
}
|
||||
|
||||
if (kIsWeb && _hasInputConnection) {
|
||||
final obscureTextChanged = oldWidget.obscureText != widget.obscureText;
|
||||
if (obscureTextChanged || oldWidget.keyboardType != widget.keyboardType) {
|
||||
if (obscureTextChanged) {
|
||||
// When obscureText is toggled, we should reset its state to prevent the last character from being visible between state changes.
|
||||
_obscureShowCharTicksPending = 0;
|
||||
_obscureLatestCharIndex = null;
|
||||
}
|
||||
if (oldWidget.readOnly != widget.readOnly) {
|
||||
_textInputConnection!.updateConfig(
|
||||
_effectiveAutofillClient.textInputConfiguration,
|
||||
);
|
||||
@@ -3294,8 +3288,13 @@ class EditableTextState extends State<EditableText>
|
||||
}
|
||||
|
||||
if (_hasInputConnection) {
|
||||
if (oldWidget.obscureText != widget.obscureText ||
|
||||
oldWidget.keyboardType != widget.keyboardType) {
|
||||
final obscureTextChanged = oldWidget.obscureText != widget.obscureText;
|
||||
if (obscureTextChanged || oldWidget.keyboardType != widget.keyboardType) {
|
||||
if (obscureTextChanged) {
|
||||
// When obscureText is toggled, we should reset its state to prevent the last character from being visible between state changes.
|
||||
_obscureShowCharTicksPending = 0;
|
||||
_obscureLatestCharIndex = null;
|
||||
}
|
||||
_textInputConnection!.updateConfig(
|
||||
_effectiveAutofillClient.textInputConfiguration,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user