feat(my): 新增错题本和我的收藏页面,重构学科标签组件
1. 为我的页面添加错题本和我的收藏跳转路由,指向共用的QuestionListPage 2. 抽离全局学科标签组件,移除class模块内的重复实现 3. 新增用户收藏/错题本接口层和数据模型 4. 完成QuestionListPage分页列表页实现,支持学科筛选和游标分页 5. 调整考试页面卡片布局和图标偏移参数
This commit is contained in:
@@ -111,8 +111,8 @@ class _ExamPageState extends State<ExamPage> {
|
||||
child: CommonPagedList<ExamDto>(
|
||||
key: ValueKey('exam-list-${_currentTab.id}'),
|
||||
load: _loadPage,
|
||||
padding: EdgeInsets.fromLTRB(12.w, 16.h, 14.w, 20.h),
|
||||
separatorBuilder: (_, __) => SizedBox(height: 14.h),
|
||||
padding: EdgeInsets.fromLTRB(12.w, 24.h, 12.w, 0),
|
||||
// separatorBuilder: (_, __) => SizedBox(height: 14.h),
|
||||
noMoreText: '- AI 爱学蝶变提醒你 没有更多了 -',
|
||||
emptyWidget: _buildEmpty(),
|
||||
buildItem: (ctx, item, index) {
|
||||
@@ -212,14 +212,14 @@ class _ExamCard extends StatelessWidget {
|
||||
|
||||
// 书图标设计尺寸(目标渲染尺寸)
|
||||
static const double _bookWidth = 124;
|
||||
static const double _bookHeight = 134;
|
||||
static const double _bookHeight = 124;
|
||||
// 卡片尺寸
|
||||
static const double _cardHeight = 92;
|
||||
static const double _cardRadius = 24;
|
||||
// ⚠ book_icon.png 自带透明 padding,下面这些偏移用于补偿图片留白
|
||||
// 让书图案的左下角对齐卡片左下角。换图时需重新调整。
|
||||
static const double _bookOffsetLeft = -14; // 左补留白(宽度加大了,偏移也加大)
|
||||
static const double _bookOffsetBottom = 10; // 底补留白
|
||||
static const double _bookOffsetBottom = 6; // 底补留白
|
||||
static const double _bookExtraHeight = 0; // 放大补偿,让图案达到目标高度
|
||||
|
||||
String get _timeRange {
|
||||
|
||||
Reference in New Issue
Block a user