🐛 Fix the goddamn AI code

This commit is contained in:
2025-07-31 21:44:14 +08:00
parent 4597373ac9
commit 6b1214a06f
10 changed files with 258 additions and 111 deletions

View File

@@ -196,14 +196,10 @@ class ExploreScreen extends HookConsumerWidget {
builder: (context) {
final isWider = isWiderScreen(context);
final bodyView = TabBarView(
controller: tabController,
physics: const NeverScrollableScrollPhysics(),
children: [
_buildActivityList(context, ref, null),
_buildActivityList(context, ref, 'subscriptions'),
_buildActivityList(context, ref, 'friends'),
],
final bodyView = _buildActivityList(
context,
ref,
currentFilter.value,
);
if (isWider) {

View File

@@ -93,7 +93,6 @@ class PostComposeScreen extends HookConsumerWidget {
// Otherwise, continue with regular post compose
final theme = Theme.of(context);
final colorScheme = theme.colorScheme;
// When editing, preserve the original replied/forwarded post references
final effectiveRepliedPost = repliedPost ?? originalPost?.repliedPost;
@@ -423,18 +422,7 @@ class PostComposeScreen extends HookConsumerWidget {
),
// Bottom toolbar
ComposeToolbar(
ref: ref,
context: context,
colorScheme: colorScheme,
isEmpty: state.isEmpty,
titleController: state.titleController,
descriptionController: state.descriptionController,
contentController: state.contentController,
visibility: state.visibility,
attachments: state.attachments,
originalPost: originalPost,
),
ComposeToolbar(state: state, originalPost: originalPost),
],
),
),

View File

@@ -460,18 +460,7 @@ class ArticleComposeScreen extends HookConsumerWidget {
),
// Bottom toolbar
ComposeToolbar(
ref: ref,
context: context,
colorScheme: colorScheme,
isEmpty: state.isEmpty,
titleController: state.titleController,
descriptionController: state.descriptionController,
contentController: state.contentController,
visibility: state.visibility,
attachments: state.attachments,
originalPost: originalPost,
),
ComposeToolbar(state: state, originalPost: originalPost),
],
),
),