Merge pull request #75 from krawieck/create-post-list-view
This commit is contained in:
commit
8224f6292e
|
@ -190,8 +190,9 @@ class CreatePost extends HookWidget {
|
|||
children: [
|
||||
TextField(
|
||||
controller: bodyController,
|
||||
expands: true,
|
||||
keyboardType: TextInputType.multiline,
|
||||
maxLines: null,
|
||||
minLines: 5,
|
||||
textAlignVertical: TextAlignVertical.top,
|
||||
decoration:
|
||||
InputDecoration(border: OutlineInputBorder(), labelText: 'Body'),
|
||||
|
@ -202,7 +203,7 @@ class CreatePost extends HookWidget {
|
|||
bodyController.text,
|
||||
instanceUrl: selectedInstance.value,
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
@ -252,13 +253,14 @@ class CreatePost extends HookWidget {
|
|||
],
|
||||
),
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
children: spaced(6, [
|
||||
child: ListView(
|
||||
padding: EdgeInsets.all(5),
|
||||
children: spaced(5, [
|
||||
instanceDropdown,
|
||||
communitiesDropdown,
|
||||
url,
|
||||
title,
|
||||
Expanded(child: body),
|
||||
body,
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
|
|
@ -89,7 +89,7 @@ class WriteComment extends HookWidget {
|
|||
),
|
||||
],
|
||||
),
|
||||
body: Column(
|
||||
body: ListView(
|
||||
children: [
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
|
@ -100,27 +100,25 @@ class WriteComment extends HookWidget {
|
|||
),
|
||||
),
|
||||
Divider(),
|
||||
Expanded(
|
||||
child: IndexedStack(
|
||||
index: showFancy.value ? 1 : 0,
|
||||
children: [
|
||||
TextField(
|
||||
controller: controller,
|
||||
autofocus: true,
|
||||
expands: true,
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue