Think based the post

This commit is contained in:
2025-10-26 22:23:17 +08:00
parent fde6dbf891
commit 62da279c71
6 changed files with 933 additions and 20 deletions

View File

@@ -22,6 +22,7 @@ import 'package:island/widgets/response.dart';
import 'package:island/utils/share_utils.dart';
import 'package:island/widgets/safety/abuse_report_helper.dart';
import 'package:island/widgets/share/share_sheet.dart';
import 'package:island/screens/thought/think_sheet.dart';
import 'package:material_symbols_icons/symbols.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:styled_widget/styled_widget.dart';
@@ -297,6 +298,16 @@ class PostActionButtons extends HookConsumerWidget {
),
);
actions.add(
FilledButton.tonalIcon(
onPressed: () {
ThoughtSheet.show(context, attachedPosts: [post.id]);
},
icon: const Icon(Symbols.smart_toy),
label: Text('aiThought'.tr()),
),
);
actions.add(
Row(
mainAxisSize: MainAxisSize.min,