From 98df275f88e954aec81e194b0da123c4aa7a8a4b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 24 Nov 2025 22:30:56 +0800 Subject: [PATCH] :bug: Fix compose article unable to scroll close #194 --- lib/screens/posts/compose_article.dart | 34 ++++++++++++++------------ 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/lib/screens/posts/compose_article.dart b/lib/screens/posts/compose_article.dart index 09045c92..eccface0 100644 --- a/lib/screens/posts/compose_article.dart +++ b/lib/screens/posts/compose_article.dart @@ -256,21 +256,25 @@ class ArticleComposeScreen extends HookConsumerWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - ComposeFormFields( - state: state, - showPublisherAvatar: false, - onPublisherTap: () { - showModalBottomSheet( - isScrollControlled: true, - context: context, - builder: (context) => const PublisherModal(), - ).then((value) { - if (value != null) { - state.currentPublisher.value = value; - } - }); - }, - ).padding(top: 16), + Expanded( + child: SingleChildScrollView( + child: ComposeFormFields( + state: state, + showPublisherAvatar: false, + onPublisherTap: () { + showModalBottomSheet( + isScrollControlled: true, + context: context, + builder: (context) => const PublisherModal(), + ).then((value) { + if (value != null) { + state.currentPublisher.value = value; + } + }); + }, + ).padding(top: 16), + ), + ), // Attachments preview ValueListenableBuilder>(