Compare commits

..

2 Commits

Author SHA1 Message Date
52f1826e91 🚀 Launch 2.2.2+62 2025-02-04 22:56:45 +08:00
28a4c86dbf Optimize post editor 2025-02-04 22:04:50 +08:00
2 changed files with 118 additions and 108 deletions

View File

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

View File

@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 2.2.2+61 version: 2.2.2+62
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4