Optimize post editor

This commit is contained in:
LittleSheep 2025-02-04 22:04:50 +08:00
parent 85e48ce03b
commit 28a4c86dbf

View File

@ -153,6 +153,7 @@ class _PostEditorScreenState extends State<PostEditorScreen> {
),
),
]),
maxLines: 2,
),
actions: [
IconButton(
@ -250,8 +251,10 @@ class _PostEditorScreenState extends State<PostEditorScreen> {
),
const Divider(height: 1),
Expanded(
child: SingleChildScrollView(
padding: EdgeInsets.only(bottom: 8),
child: Stack(
children: [
SingleChildScrollView(
padding: EdgeInsets.only(bottom: 160),
child: Column(
children: [
// Replying Notice
@ -331,9 +334,12 @@ class _PostEditorScreenState extends State<PostEditorScreen> {
.toList(),
),
),
),
if (_writeController.attachments.isNotEmpty || _writeController.thumbnail != null)
PostMediaPendingList(
Positioned(
bottom: 0,
left: 0,
right: 0,
child: PostMediaPendingList(
thumbnail: _writeController.thumbnail,
attachments: _writeController.attachments,
isBusy: _writeController.isBusy,
@ -365,6 +371,10 @@ class _PostEditorScreenState extends State<PostEditorScreen> {
},
onUpdateBusy: (state) => _writeController.setIsBusy(state),
).padding(bottom: 8),
),
],
),
),
Material(
elevation: 2,
child: Column(