Skip to content

Commit 97f42c4

Browse files
authored
fix: TextField freezes on Linux Mint (#4422)
1 parent 61e9fa1 commit 97f42c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/flet/lib/src/controls/textfield.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:flet/src/utils/platform.dart';
12
import 'package:flutter/material.dart';
23
import 'package:flutter/services.dart';
34

@@ -318,6 +319,10 @@ class _TextFieldControlState extends State<TextFieldControl>
318319
child: textField);
319320
}
320321

322+
// linux workaround for https://github.com/flet-dev/flet/issues/3934
323+
textField =
324+
isLinuxDesktop() ? ExcludeSemantics(child: textField) : textField;
325+
321326
if (widget.control.attrInt("expand", 0)! > 0) {
322327
return constrainedControl(
323328
context, textField, widget.parent, widget.control);

0 commit comments

Comments
 (0)