diff --git a/lib/widgets/write_comment.dart b/lib/widgets/write_comment.dart index 957ffe3..7b87332 100644 --- a/lib/widgets/write_comment.dart +++ b/lib/widgets/write_comment.dart @@ -100,27 +100,25 @@ class WriteComment extends HookWidget { ), ), Divider(), - Expanded( - child: IndexedStack( - index: showFancy.value ? 1 : 0, - children: [ - TextField( - controller: controller, - autofocus: true, - minLines: 5, - maxLines: null, - textAlignVertical: TextAlignVertical.top, - decoration: InputDecoration(border: OutlineInputBorder()), + IndexedStack( + index: showFancy.value ? 1 : 0, + children: [ + TextField( + controller: controller, + autofocus: true, + minLines: 5, + maxLines: null, + textAlignVertical: TextAlignVertical.top, + decoration: InputDecoration(border: OutlineInputBorder()), + ), + Padding( + padding: const EdgeInsets.all(16), + child: MarkdownText( + controller.text, + instanceUrl: instanceUrl, ), - Padding( - padding: const EdgeInsets.all(16), - child: MarkdownText( - controller.text, - instanceUrl: instanceUrl, - ), - ) - ], - ), + ) + ], ), Row( mainAxisAlignment: MainAxisAlignment.end,