🐛 Fix compose article unable to scroll close #194

This commit is contained in:
2025-11-24 22:30:56 +08:00
parent 5663df6ef1
commit 98df275f88

View File

@@ -256,21 +256,25 @@ class ArticleComposeScreen extends HookConsumerWidget {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
ComposeFormFields( Expanded(
state: state, child: SingleChildScrollView(
showPublisherAvatar: false, child: ComposeFormFields(
onPublisherTap: () { state: state,
showModalBottomSheet( showPublisherAvatar: false,
isScrollControlled: true, onPublisherTap: () {
context: context, showModalBottomSheet(
builder: (context) => const PublisherModal(), isScrollControlled: true,
).then((value) { context: context,
if (value != null) { builder: (context) => const PublisherModal(),
state.currentPublisher.value = value; ).then((value) {
} if (value != null) {
}); state.currentPublisher.value = value;
}, }
).padding(top: 16), });
},
).padding(top: 16),
),
),
// Attachments preview // Attachments preview
ValueListenableBuilder<List<UniversalFile>>( ValueListenableBuilder<List<UniversalFile>>(