From 7e3759b63879794f0fe10212e9dce86bb2ddf15a Mon Sep 17 00:00:00 2001 From: Kuloud Date: Fri, 26 Jul 2024 13:47:07 +0800 Subject: [PATCH] =?UTF-8?q?Close=20Issue=20#12:=20=E4=BF=AE=E5=A4=8Dx=5Fma?= =?UTF-8?q?p=5Fbase=20=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E9=97=AE=E9=A2=98=EF=BC=9B=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=ACFlutter=20theme=20=E5=AD=97=E6=AE=B5=E5=BC=83?= =?UTF-8?q?=E7=94=A8=E5=BC=95=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 13 +++++++++++++ example/lib/category_list_item.dart | 11 ++++++----- pubspec.yaml | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5408eaa..1b08057 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,7 @@ 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 }} @@ -18,3 +19,15 @@ jobs: 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 \ No newline at end of file diff --git a/example/lib/category_list_item.dart b/example/lib/category_list_item.dart index 77cc1f4..87d55f5 100644 --- a/example/lib/category_list_item.dart +++ b/example/lib/category_list_item.dart @@ -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), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index ee8f084..62bc3ef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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