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

@ -11,6 +11,7 @@ jobs:
uses: actions/checkout@main # required! uses: actions/checkout@main # required!
- name: '>> Dart package <<' - name: '>> Dart package <<'
id: package_publisher
uses: k-paxian/dart-package-publisher@master uses: k-paxian/dart-package-publisher@master
with: with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
@ -18,3 +19,15 @@ jobs:
skipTests: true skipTests: true
flutter: true flutter: true
force: true force: true
- name: Create Release
if: steps.package_publisher.outputs.success == 'true'
uses: kuloud/Github-Release-Action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package_publisher.outputs.localVersion }}
title: Release ${{ steps.package_publisher.outputs.localVersion }}
body: |
Automated release for version ${{ steps.package_publisher.outputs.localVersion }}
draft: false
prerelease: false

View File

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

View File

@ -21,7 +21,7 @@ dependencies:
plugin_platform_interface: ^2.1.8 plugin_platform_interface: ^2.1.8
stream_transform: ^2.0.0 stream_transform: ^2.0.0
x_amap_base: ^1.0.1 x_amap_base: ^1.0.3
# provider: ^6.1.1 # provider: ^6.1.1
# x_amap_base: # x_amap_base:
# path: ../x_amap_base # path: ../x_amap_base