feat(app): 多页面动态化 — 搜索/资料/教师/贴纸库/模板/日历
- SearchPage: 热搜词从日记标签频率动态生成 + 模板搜索网格 - ProfilePage: 成就徽章从 AchievementBloc 动态加载 + 头像首字母 - TeacherPage: 班级码改为对话框展示 (班级名+码+人数) - StickerLibraryPage: 分类从 API 动态合并 + 精选包卡片动态化 - TemplateGalleryPage: 适配动态数据 - ClassPage: 微调 - HomePage: 路由适配 - CalendarBloc: 新增测试 - AppRouter: 路由更新
This commit is contained in:
@@ -293,13 +293,22 @@ class _TemplateCard extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
// 标签
|
||||
// 标签(从模板 category 动态生成)
|
||||
Wrap(
|
||||
spacing: 6,
|
||||
runSpacing: 4,
|
||||
children: [
|
||||
_TagPill(label: '学生专属', bgColor: secondarySoft, textColor: AppColors.secondary),
|
||||
_TagPill(label: '简约', bgColor: tertiarySoft, textColor: AppColors.tertiary),
|
||||
if (template.category != null && template.category!.isNotEmpty)
|
||||
_TagPill(
|
||||
label: template.category!,
|
||||
bgColor: secondarySoft,
|
||||
textColor: AppColors.secondary,
|
||||
),
|
||||
_TagPill(
|
||||
label: template.isFree ? '免费' : '精品',
|
||||
bgColor: template.isFree ? tertiarySoft : AppColors.roseSoftLight,
|
||||
textColor: template.isFree ? AppColors.tertiary : AppColors.rose,
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
|
||||
Reference in New Issue
Block a user