From 953e5e773c1af2d14ad17c6e9bbe1e1d3e87a7f8 Mon Sep 17 00:00:00 2001 From: userGyl Date: Wed, 7 Jan 2026 16:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ln_jq_app/lib/pages/c_page/mine/view.dart | 38 +++++++++++------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/ln_jq_app/lib/pages/c_page/mine/view.dart b/ln_jq_app/lib/pages/c_page/mine/view.dart index 17b0b87..e7374a9 100644 --- a/ln_jq_app/lib/pages/c_page/mine/view.dart +++ b/ln_jq_app/lib/pages/c_page/mine/view.dart @@ -80,28 +80,26 @@ class MinePage extends GetView { ], ), ), - Container( - padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), - decoration: BoxDecoration( - color: Colors.blue[50], - borderRadius: BorderRadius.circular(12), - border: Border.all(color: Colors.blue, width: 0.5), + IconButton( + onPressed: () { + // TODO: 跳转 + }, + // 这里的 style 是为了模拟你图片里的灰色圆形背景 + style: IconButton.styleFrom( + backgroundColor: Colors.grey[100], + padding: const EdgeInsets.all(8), ), - child: const Row( - children: [ - Icon(Icons.shield_outlined, color: Colors.blue, size: 14), - SizedBox(width: 4), - Text( - '已认证', - style: TextStyle( - color: Colors.blue, - fontSize: 10, - fontWeight: FontWeight.bold, - ), - ), - ], + icon: const Badge( + // label: Text('3'), // 如果你想显示数字,就加 label + smallSize: 8, // 红点的大小 + backgroundColor: Colors.red, // 红点颜色 + child: Icon( + Icons.notifications_outlined, + color: Colors.black87, + size: 25, + ), ), - ), + ) ], ), ),