Files
ttstd_family_care/lib/features/profile/domain/profile_models.g.dart
T
tongtong e06e12fbbc feat(profile): 实现个人资料编辑与策略本地缓存
- 将资料编辑页重构为可交互表单,支持昵称、签名编辑与头像更换
- 新增 DioClient 本地缓存读取与写入方法,支持离线读取策略快照
- 设备策略切换后自动使本地缓存失效,避免数据不一致
- Home Tab 切换时选中态跟随可见页面,滑动过程中实时更新底栏高亮
- 系统设置页引入 loading 遮罩层,防止切换开关时重复操作
- 个人资料页接入 profileController 展示真实用户信息与加载状态
- 适配深色模式,修正 home_tab 中头像与文字颜色硬编码问题
2026-11-09 09:24:51 +08:00

53 lines
1.8 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'profile_models.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$UserProfileImpl _$$UserProfileImplFromJson(Map<String, dynamic> json) =>
_$UserProfileImpl(
id: _idToString(json['id']),
username: json['username'] as String? ?? '',
nickname: json['nickname'] as String? ?? '',
signature: json['signature'] as String? ?? '',
avatar: json['avatar'] as String?,
);
Map<String, dynamic> _$$UserProfileImplToJson(_$UserProfileImpl instance) =>
<String, dynamic>{
'id': instance.id,
'username': instance.username,
'nickname': instance.nickname,
'signature': instance.signature,
'avatar': instance.avatar,
};
_$ProfileStateImpl _$$ProfileStateImplFromJson(Map<String, dynamic> json) =>
_$ProfileStateImpl(
profile: json['profile'] == null
? null
: UserProfile.fromJson(json['profile'] as Map<String, dynamic>),
loading: json['loading'] as bool? ?? true,
saving: json['saving'] as bool? ?? false,
alert: json['alert'] as String?,
issue: $enumDecodeNullable(_$ProfileIssueEnumMap, json['issue']),
);
Map<String, dynamic> _$$ProfileStateImplToJson(_$ProfileStateImpl instance) =>
<String, dynamic>{
'profile': instance.profile,
'loading': instance.loading,
'saving': instance.saving,
'alert': instance.alert,
'issue': _$ProfileIssueEnumMap[instance.issue],
};
const _$ProfileIssueEnumMap = {
ProfileIssue.nicknameInvalid: 'nicknameInvalid',
ProfileIssue.signatureInvalid: 'signatureInvalid',
ProfileIssue.avatarTooLarge: 'avatarTooLarge',
ProfileIssue.avatarUnsupported: 'avatarUnsupported',
};