Skip to content

Commit

Permalink
Close Issue #12: 修复x_map_base 临时文件引用问题;修复新版本Flutter theme 字段弃用引用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kuloud committed Jul 26, 2024
1 parent 2c3e525 commit 7e3759b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ jobs:
uses: actions/checkout@main # required!

- name: '>> Dart package <<'
id: package_publisher
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
skipTests: true
flutter: 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
11 changes: 6 additions & 5 deletions example/lib/category_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
),
],
Expand Down Expand Up @@ -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),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
plugin_platform_interface: ^2.1.8
stream_transform: ^2.0.0

x_amap_base: ^1.0.1
x_amap_base: ^1.0.3
# provider: ^6.1.1
# x_amap_base:
# path: ../x_amap_base
Expand Down

0 comments on commit 7e3759b

Please sign in to comment.