From 18842c9dacb5cabc3120a1f3d5d2a33b43745178 Mon Sep 17 00:00:00 2001 From: matt200-ok Date: Thu, 27 Jun 2024 14:56:10 -0700 Subject: [PATCH] Flutter demo updates (#380) --- .github/workflows/flutter-codestyle.yml | 4 ++-- .github/workflows/flutter-demos.yml | 6 +++--- demo/flutter/lib/main.dart | 2 +- demo/flutter/pubspec.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/flutter-codestyle.yml b/.github/workflows/flutter-codestyle.yml index e1da438c..b255fd9a 100644 --- a/.github/workflows/flutter-codestyle.yml +++ b/.github/workflows/flutter-codestyle.yml @@ -20,10 +20,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install Flutter 2.8.1 + - name: Install Flutter 3.22.2 uses: subosito/flutter-action@v2 with: - flutter-version: 2.8.1 + flutter-version: 3.22.2 - name: Run Binding Analyzer run: flutter analyze --no-fatal-infos --no-fatal-warnings diff --git a/.github/workflows/flutter-demos.yml b/.github/workflows/flutter-demos.yml index 35fe4f6a..62ae07c5 100644 --- a/.github/workflows/flutter-demos.yml +++ b/.github/workflows/flutter-demos.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - flutter-version: ['2.8.1', '3.0.4'] + flutter-version: ['3.3.0', '3.22.2'] steps: - uses: actions/checkout@v3 @@ -52,10 +52,10 @@ jobs: build-ios: name: Build iOS demo - runs-on: macos-11 + runs-on: macos-12 strategy: matrix: - flutter-version: ['2.8.1', '3.0.4'] + flutter-version: ['3.3.0', '3.22.2'] steps: - uses: actions/checkout@v3 diff --git a/demo/flutter/lib/main.dart b/demo/flutter/lib/main.dart index bf50d7e9..a0914d3d 100644 --- a/demo/flutter/lib/main.dart +++ b/demo/flutter/lib/main.dart @@ -214,7 +214,7 @@ class _MyAppState extends State { buildStartButton(BuildContext context) { final ButtonStyle buttonStyle = ElevatedButton.styleFrom( - primary: picoBlue, + backgroundColor: picoBlue, shape: BeveledRectangleBorder(), textStyle: TextStyle(color: Colors.white)); diff --git a/demo/flutter/pubspec.yaml b/demo/flutter/pubspec.yaml index 748ff689..8162f918 100644 --- a/demo/flutter/pubspec.yaml +++ b/demo/flutter/pubspec.yaml @@ -6,8 +6,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.15.0 <4.0.0" - flutter: ">=2.8.1" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: