From 70087f0cb5eb23ecff3abf3f289dba8e98b0d519 Mon Sep 17 00:00:00 2001 From: Brandon Jenniges Date: Mon, 17 Jun 2024 11:42:42 -0500 Subject: [PATCH] Upgrade example app to support Flutter 3.22.2 --- .github/workflows/build.yml | 2 +- example/ios/Runner/AppDelegate.swift | 2 +- example/lib/widgets/cookie_button.dart | 2 +- example/lib/widgets/order_sheet.dart | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ccdbfe6..d822ceb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: 'stable' - flutter-version: "3.0.5" + flutter-version: "3.22.2" architecture: x64 # or: 'beta', 'dev' or 'master' - run: flutter pub get diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 70693e4..b636303 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import UIKit import Flutter -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, diff --git a/example/lib/widgets/cookie_button.dart b/example/lib/widgets/cookie_button.dart index 8897c76..1e02f0b 100644 --- a/example/lib/widgets/cookie_button.dart +++ b/example/lib/widgets/cookie_button.dart @@ -27,7 +27,7 @@ class CookieButton extends StatelessWidget { width: MediaQuery.of(context).size.width * .44, child: ElevatedButton( style: ElevatedButton.styleFrom( - primary: mainButtonColor, + backgroundColor: mainButtonColor, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(15.0), ), diff --git a/example/lib/widgets/order_sheet.dart b/example/lib/widgets/order_sheet.dart index 0d309c4..af8610a 100644 --- a/example/lib/widgets/order_sheet.dart +++ b/example/lib/widgets/order_sheet.dart @@ -124,7 +124,7 @@ class OrderSheet extends StatelessWidget { width: MediaQuery.of(context).size.width * .44, child: ElevatedButton( style: ElevatedButton.styleFrom( - primary: Colors.black, + backgroundColor: Colors.black, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(15.0), ), @@ -160,7 +160,7 @@ class OrderSheet extends StatelessWidget { width: MediaQuery.of(context).size.width * .44, child: ElevatedButton( style: ElevatedButton.styleFrom( - primary: Colors.black, + backgroundColor: Colors.black, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(15.0), ),