forked from Nexus/nexus
only enable autofocus on desktop platforms
This commit is contained in:
parent
56dbd91c96
commit
f7847d587c
1 changed files with 6 additions and 1 deletions
|
|
@ -234,7 +234,12 @@ class Composer extends HookConsumerWidget {
|
||||||
child: TextField(
|
child: TextField(
|
||||||
maxLines: 12,
|
maxLines: 12,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
autofocus: true,
|
autofocus:
|
||||||
|
(Platform.isLinux ||
|
||||||
|
Platform.isMacOS ||
|
||||||
|
Platform.isWindows)
|
||||||
|
? true
|
||||||
|
: false,
|
||||||
decoration: .new(
|
decoration: .new(
|
||||||
hintText: "Your message here...",
|
hintText: "Your message here...",
|
||||||
border: .none,
|
border: .none,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue