From e4dfefb1d09cccdd117ae576f1ffbef2ae768963 Mon Sep 17 00:00:00 2001 From: goflutterjava Date: Thu, 13 Jan 2022 10:38:07 +0800 Subject: [PATCH 1/2] Use flutter actions v2 --- .github/workflows/flutter_analyze.yaml | 2 +- .github/workflows/flutter_check_style.yaml | 2 +- .github/workflows/release_windows.yaml | 2 +- lib/open/open_api_pulsar.dart | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/flutter_analyze.yaml b/.github/workflows/flutter_analyze.yaml index 2fc86b5..5dceb2e 100644 --- a/.github/workflows/flutter_analyze.yaml +++ b/.github/workflows/flutter_analyze.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: 'beta' - run: flutter pub get diff --git a/.github/workflows/flutter_check_style.yaml b/.github/workflows/flutter_check_style.yaml index 74c5624..eca3005 100644 --- a/.github/workflows/flutter_check_style.yaml +++ b/.github/workflows/flutter_check_style.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: 'beta' - run: flutter pub get diff --git a/.github/workflows/release_windows.yaml b/.github/workflows/release_windows.yaml index 1f901df..c548ff3 100644 --- a/.github/workflows/release_windows.yaml +++ b/.github/workflows/release_windows.yaml @@ -10,7 +10,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: beta - run: flutter config --enable-windows-desktop diff --git a/lib/open/open_api_pulsar.dart b/lib/open/open_api_pulsar.dart index 51dd5ad..85fcdde 100644 --- a/lib/open/open_api_pulsar.dart +++ b/lib/open/open_api_pulsar.dart @@ -1,8 +1,8 @@ import 'package:paas_dashboard_flutter/api/pulsar/pulsar_partitioned_topic_api.dart'; import 'package:paas_dashboard_flutter/persistent/persistent.dart'; -class PulsarService { - Future partitionTopicNumber(String name, String tenant, String namespace) async { +class OpenApiPulsar { + Future partitionTopicCount(String name, String tenant, String namespace) async { var pulsarInstance = await Persistent.pulsarInstance(name); if (pulsarInstance == null) { throw ArgumentError("pulsar instance not exist"); From 666c3d405670208c0426a4aa4b1ff3332943fe6c Mon Sep 17 00:00:00 2001 From: goflutterjava Date: Thu, 13 Jan 2022 10:44:25 +0800 Subject: [PATCH 2/2] Fix code warning --- lib/main.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/main.dart b/lib/main.dart index 5db2ab8..56f53a8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -145,6 +145,7 @@ class MyApp extends StatelessWidget { final args = settings.arguments as SqlViewModel; return RouteGen.sqlExecute(args); } + throw UnimplementedError(); }, ); }