完善细类

This commit is contained in:
Developer
2026-03-31 07:56:35 +08:00
parent 66f72abab4
commit 9a58f6ca19
12 changed files with 683 additions and 257 deletions

View File

@@ -158,7 +158,7 @@ class _PoetryCardState extends State<PoetryCard> {
],
),
),
if (_showCopyTip) _buildCopyTip(),
_buildCopyTip(),
],
),
);
@@ -225,6 +225,10 @@ class _PoetryCardState extends State<PoetryCard> {
}
Widget _buildCopyTip() {
if (!_globalTipsEnabled || !_showCopyTip) {
return const SizedBox.shrink();
}
return Positioned(
top: 56,
right: 24,
@@ -243,21 +247,21 @@ class _PoetryCardState extends State<PoetryCard> {
),
],
),
child: Row(
child: const Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(Icons.info_outline, color: Colors.white, size: 16),
const SizedBox(width: 6),
Icon(Icons.info_outline, color: Colors.white, size: 16),
SizedBox(width: 6),
Text(
_globalTipsEnabled ? '点击任意区域加载下一条,长按复制,下拉刷新' : '',
'点击任意区域加载下一条,长按复制,下拉刷新',
style: TextStyle(
color: Colors.white,
fontSize: 12,
fontWeight: FontWeight.w500,
),
),
const SizedBox(width: 4),
const Icon(Icons.close, color: Colors.white, size: 14),
SizedBox(width: 4),
Icon(Icons.close, color: Colors.white, size: 14),
],
),
),