图片生成

This commit is contained in:
Developer
2026-03-31 06:11:32 +08:00
parent d6ac0ed1e4
commit 66f72abab4
6 changed files with 912 additions and 69 deletions

View File

@@ -17,6 +17,7 @@ class PoetryCard extends StatefulWidget {
final List<String> keywordList;
final VoidCallback? onTap;
final Map<String, bool>? sectionLoadingStates;
final GlobalKey? repaintKey;
const PoetryCard({
super.key,
@@ -24,6 +25,7 @@ class PoetryCard extends StatefulWidget {
required this.keywordList,
this.onTap,
this.sectionLoadingStates,
this.repaintKey,
});
@override
@@ -104,7 +106,7 @@ class _PoetryCardState extends State<PoetryCard> {
@override
Widget build(BuildContext context) {
return GestureDetector(
final card = GestureDetector(
onTap: () {
// 播放点击音效(不等待完成)
AudioManager().playClickSound();
@@ -160,6 +162,11 @@ class _PoetryCardState extends State<PoetryCard> {
],
),
);
if (widget.repaintKey != null) {
return RepaintBoundary(key: widget.repaintKey, child: card);
}
return card;
}
Widget _buildTimeBar() {