From a992dcecbd1873877cd9028f05364b9c9fdb4976 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 20 Jan 2026 12:30:52 +0800 Subject: [PATCH 1/4] fix: fix docs format --- lib/smart_create.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/smart_create.dart b/lib/smart_create.dart index b5fd7d9..41baa9c 100644 --- a/lib/smart_create.dart +++ b/lib/smart_create.dart @@ -236,7 +236,7 @@ class SmartCreator { if (parsedComponentInfoList.length > 0) { sb.write('\n'); if (parsedComponentInfoList.indexOf(apiInfo) >= 1) { - sb.write('''```\n```\n '''); + sb.write('''```\n```\n'''); } sb.write('### ${apiInfo.componentInfo!.name}'); if (commandInfo?.isGetComments ?? false) { @@ -410,4 +410,4 @@ class ${componentInfo!.name}Demo1 extends StatelessWidget { // 指定widget生成地址 String getWidgetDirPath(String? destName) => '${output ?? 'example/lib/api/widget_group/'}$destName'; -} \ No newline at end of file +} From cda1d9cfcac3f734029a5166f2de11d8750b94ef Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 20 Jan 2026 13:12:09 +0800 Subject: [PATCH 2/4] Upgrade checkout action from v4 to v6 --- .github/workflows/build-multi-platform.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index 59f60fa..a22bf78 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -11,7 +11,7 @@ jobs: artifact_id: ${{ steps.upload.outputs.artifact-id }} artifact_url: ${{ steps.upload.outputs.artifact-url }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -43,7 +43,7 @@ jobs: artifact_id: ${{ steps.upload.outputs.artifact-id }} artifact_url: ${{ steps.upload.outputs.artifact-url }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -75,7 +75,7 @@ jobs: artifact_id: ${{ steps.upload.outputs.artifact-id }} artifact_url: ${{ steps.upload.outputs.artifact-url }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Flutter uses: subosito/flutter-action@v2 with: @@ -106,7 +106,7 @@ jobs: artifact_id: ${{ steps.upload.outputs.artifact-id }} artifact_url: ${{ steps.upload.outputs.artifact-url }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup Flutter uses: subosito/flutter-action@v2 with: From 30f19267c51f26eeb63c228cc133839aec2d136c Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 20 Jan 2026 13:25:07 +0800 Subject: [PATCH 3/4] Fix formatting in smart_create.dart output --- lib/smart_create.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/smart_create.dart b/lib/smart_create.dart index 41baa9c..0755419 100644 --- a/lib/smart_create.dart +++ b/lib/smart_create.dart @@ -236,9 +236,9 @@ class SmartCreator { if (parsedComponentInfoList.length > 0) { sb.write('\n'); if (parsedComponentInfoList.indexOf(apiInfo) >= 1) { - sb.write('''```\n```\n'''); + sb.write('''```\n```\n\n'''); } - sb.write('### ${apiInfo.componentInfo!.name}'); + sb.write(' ${apiInfo.componentInfo!.name}'); if (commandInfo?.isGetComments ?? false) { sb.write('\n#### 简介\n'); sb.write('${apiInfo.componentInfo!.introduction}'); From b766ed4f68b4ae0384b5d09d40e65f3807d99955 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 20 Jan 2026 13:29:31 +0800 Subject: [PATCH 4/4] Update smart_create.dart --- lib/smart_create.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smart_create.dart b/lib/smart_create.dart index 0755419..3728548 100644 --- a/lib/smart_create.dart +++ b/lib/smart_create.dart @@ -238,7 +238,7 @@ class SmartCreator { if (parsedComponentInfoList.indexOf(apiInfo) >= 1) { sb.write('''```\n```\n\n'''); } - sb.write(' ${apiInfo.componentInfo!.name}'); + sb.write('### ${apiInfo.componentInfo!.name}'); if (commandInfo?.isGetComments ?? false) { sb.write('\n#### 简介\n'); sb.write('${apiInfo.componentInfo!.introduction}');