feat(client): 连接页桌面节点胶囊(_NodePill)加地域国旗
桌面连接页「已连接」下的节点框是 _NodePill,此前只有文字「节点名·延时」+ 智能选择 zap,无国旗。在地域前加 CountryCode(size 20)国旗(无效码回退码块), 智能选择时国旗 + zap 并存。手机/平板的 _CurrentNodeCard 本已有旗。 桌面连接页非 golden 覆盖(含旋转动画),无 golden 变更。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -340,14 +340,17 @@ class _NodePill extends StatelessWidget {
|
||||
? '${t.smartSelect} · ${node.localizedName(t.lang)} · $pingLabel'
|
||||
: '${node.localizedName(t.lang)} · $pingLabel';
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 6),
|
||||
padding: const EdgeInsets.only(left: 6, right: 14, top: 5, bottom: 5),
|
||||
decoration: BoxDecoration(
|
||||
color: c.surface,
|
||||
border: Border.all(color: c.border),
|
||||
borderRadius: BorderRadius.circular(PangolinRadius.full),
|
||||
),
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
if (smart) ...[Icon(PangolinIcons.zap, size: 13, color: c.accent), const SizedBox(width: 7)],
|
||||
// 地域国旗(无效码回退码块);智能选择再叠一个 zap 标识。
|
||||
CountryCode(code: node.code, size: 20),
|
||||
const SizedBox(width: 8),
|
||||
if (smart) ...[Icon(PangolinIcons.zap, size: 13, color: c.accent), const SizedBox(width: 6)],
|
||||
Text(label,
|
||||
style: PangolinText.caption.copyWith(color: c.fg2, fontSize: 12.5, fontWeight: FontWeight.w600)),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user