完善细类
This commit is contained in:
@@ -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),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user