wrap textfield in selection area to make typing work on Safari and Firefox (#1251)

pull/1544/head
ggurdin 11 months ago committed by GitHub
parent bf9e0aeba2
commit 3e017d733f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -472,7 +472,8 @@ class InputBar extends StatelessWidget {
// show suggestions after 50ms idle time (default is 300)
// #Pangea
// builder: (context, controller, focusNode) => TextField(
builder: (context, _, focusNode) => TextField(
builder: (context, _, focusNode) => SelectionArea(
child: TextField(
enableSuggestions: false,
readOnly:
controller != null && controller!.choreographer.isRunningIT,
@ -541,6 +542,7 @@ class InputBar extends StatelessWidget {
},
textCapitalization: TextCapitalization.sentences,
),
),
suggestionsCallback: getSuggestions,
itemBuilder: (c, s) =>
buildSuggestion(c, s, Matrix.of(context).client),

Loading…
Cancel
Save