优化高亮分享

This commit is contained in:
DelLevin-Home
2026-07-05 00:14:42 +08:00
parent e5c2eb2bb7
commit e2c15cef99
2 changed files with 168 additions and 36 deletions

View File

@@ -149,15 +149,18 @@ class _HighlightSharePageState extends State<HighlightSharePage> {
Row(
children: [
if (widget.chapter.isNotEmpty) ...[
Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
decoration: BoxDecoration(
color: const Color(0xFFFFEB3B).withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(4),
),
child: Text(
widget.chapter,
style: const TextStyle(fontSize: 11, color: Color(0xFF795548), fontWeight: FontWeight.w500),
Flexible(
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
decoration: BoxDecoration(
color: const Color(0xFFFFEB3B).withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(4),
),
child: Text(
widget.chapter,
style: const TextStyle(fontSize: 11, color: Color(0xFF795548), fontWeight: FontWeight.w500),
overflow: TextOverflow.ellipsis,
),
),
),
const SizedBox(width: 8),