feat: 设置页面增强,支持用户信息展示和密码修改

This commit is contained in:
qzl
2026-03-10 17:43:17 +08:00
parent 8dd48ec15b
commit f30bfc2006
9 changed files with 859 additions and 135 deletions
@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
class MemoryItemModel {
final String id;
final IconData icon;
final String title;
final String subtitle;
MemoryItemModel({
required this.id,
required this.icon,
required this.title,
required this.subtitle,
});
}
class MockMemoryService {
static final MockMemoryService _instance = MockMemoryService._internal();
factory MockMemoryService() => _instance;
final List<MemoryItemModel> _items = [];
MockMemoryService._internal();
List<MemoryItemModel> get items => List.unmodifiable(_items);
List<MemoryItemModel> fetchMemoryItems() {
return items;
}
}
class MemoryService {
final MockMemoryService _mock = MockMemoryService();
List<MemoryItemModel> getMemoryItems() {
return _mock.fetchMemoryItems();
}
}