mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 02:42:34 +01:00
fix: TextField
This commit is contained in:
parent
5e673c6d3d
commit
7ec349b980
@ -134,7 +134,6 @@ class _ChatState extends State<_Chat> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
_scrollController.addListener(_updateScrollController);
|
_scrollController.addListener(_updateScrollController);
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -997,7 +996,10 @@ class _ChatState extends State<_Chat> {
|
|||||||
timeout: Duration(seconds: 30)
|
timeout: Duration(seconds: 30)
|
||||||
.inMilliseconds);
|
.inMilliseconds);
|
||||||
}
|
}
|
||||||
setState(() => inputText = text);
|
// Workaround for a current desktop bug
|
||||||
|
if (!PlatformInfos.isBetaDesktop) {
|
||||||
|
setState(() => inputText = text);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -1012,7 +1014,8 @@ class _ChatState extends State<_Chat> {
|
|||||||
voiceMessageAction(context),
|
voiceMessageAction(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (kIsWeb || inputText.isNotEmpty)
|
if (!PlatformInfos.isMobile ||
|
||||||
|
inputText.isNotEmpty)
|
||||||
Container(
|
Container(
|
||||||
height: 56,
|
height: 56,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
Loading…
Reference in New Issue
Block a user