Close Issue #12: 修复x_map_base 临时文件引用问题;修复新版本Flutter theme 字段弃用引用问题

This commit is contained in:
Kuloud
2024-07-26 13:47:07 +08:00
parent 2c3e525b32
commit 7e3759b638
3 changed files with 20 additions and 6 deletions

View File

@ -198,9 +198,10 @@ class _CategoryHeader extends StatelessWidget {
padding: const EdgeInsetsDirectional.only(start: 8),
child: Text(
category.toDisplayTitle(),
style: Theme.of(context).textTheme.headline5!.apply(
color: colorScheme.onSurface,
),
style:
Theme.of(context).textTheme.headlineMedium!.apply(
color: colorScheme.onSurface,
),
),
),
],
@ -291,12 +292,12 @@ class CategoryDemoItem extends StatelessWidget {
children: [
Text(
demo.title,
style: textTheme.subtitle1!
style: textTheme.titleMedium!
.apply(color: colorScheme.onSurface),
),
Text(
demo.subtitle,
style: textTheme.overline!.apply(
style: textTheme.labelMedium!.apply(
color: colorScheme.onSurface.withOpacity(0.5),
),
),