fix(mobile): 新的同事页合并发出/收到申请并按方向渲染(视觉审查 🔴1/🔴2)
- 合并 getFriendApplicationListAsApplicant(我发出的)+ AsRecipient(我收到的), 按 fromUserID 是否等于自己判断方向 - 我发出的待处理 → 灰字「等待对方通过」且无操作按钮;我收到的待处理才渲染 「接受/拒绝」;已同意→已添加、已拒绝→已拒绝(视觉规范 5.1) - 接受/拒绝按钮 shape 复用 theme.dart 新增的统一 8px Token(AppRadius.button), 不再用 Material3 默认胶囊圆角,页面内零魔法数值 - 窄屏(<360)按钮组/状态字换第二行右对齐不挤压姓名;非窄屏状态区固定 132px 双机实测:A(t2001)发→A 侧 AsApplicant 显示 handleResult=0(等待对方通过、无按钮); B(t2002)收→AsRecipient 显示接受/拒绝按钮,点接受后双方 handleResult=1(已添加) Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -75,6 +75,20 @@ class AppGap {
|
||||
static const double x12 = 48;
|
||||
}
|
||||
|
||||
/// 圆角常量(视觉规范 v1 §2:按钮/输入框/列表项 = 8,弹窗 = 12,气泡 = 8)
|
||||
class AppRadius {
|
||||
AppRadius._();
|
||||
|
||||
/// 按钮 / 输入框 / 列表项
|
||||
static const double button = 8;
|
||||
|
||||
/// 弹窗
|
||||
static const double modal = 12;
|
||||
|
||||
/// 气泡
|
||||
static const double bubble = 8;
|
||||
}
|
||||
|
||||
/// 统一的主题
|
||||
ThemeData buildAppTheme() {
|
||||
return ThemeData(
|
||||
|
||||
Reference in New Issue
Block a user