Files
KiriMemo/lib/models/account_profile.dart
pluv 22715f7247 feat: manage, account and help pages
- 管理页:单元集 / 计划 / 算法三个维度,卡片带元数据
- 账户页:资料、学习数据、竖直分组的四个功能入口
- 新增设置、文档与帮助(底部可上滑助手)、反馈、关于四个页面
- 抽出 StatBlock 与 GroupedListSection 共用组件
- 关闭 Android 预测式返回,转场改为 M3 水平滑入
2026-10-24 15:21:30 +08:00

31 lines
639 B
Dart

/// 账户页展示的用户资料。
class AccountProfile {
const AccountProfile({
required this.displayName,
required this.userId,
required this.stage,
required this.totalHours,
required this.streakDays,
});
final String displayName;
final String userId;
/// 学习阶段,如「大一」。
final String stage;
/// 累计学习时长(小时)。
final int totalHours;
/// 连续学习天数。
final int streakDays;
static const AccountProfile sample = AccountProfile(
displayName: 'zhiyu',
userId: 'KM-1024',
stage: '大一',
totalHours: 42,
streakDays: 4,
);
}