Skip to content

Commit

Permalink
chore(flutter): update Flutter and dependencies to 3.24.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGD03 committed Sep 7, 2024
1 parent d3eac97 commit 0b6aff7
Show file tree
Hide file tree
Showing 13 changed files with 122 additions and 169 deletions.
8 changes: 4 additions & 4 deletions lib/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ class HomeScreenState extends State<HomeScreen> {
final theme = Theme.of(context).copyWith(
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
shape: MaterialStateProperty.resolveWith<OutlinedBorder?>(
(Set<MaterialState> states) {
shape: WidgetStateProperty.resolveWith<OutlinedBorder?>(
(Set<WidgetState> states) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
);
},
),
minimumSize: MaterialStateProperty.resolveWith<Size?>(
(Set<MaterialState> states) {
minimumSize: WidgetStateProperty.resolveWith<Size?>(
(Set<WidgetState> states) {
return homeBtnSize;
},
),
Expand Down
2 changes: 1 addition & 1 deletion lib/settings/update_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ sudo systemctl restart orion.service
child: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
Expand Down
16 changes: 8 additions & 8 deletions lib/status/error_print_failure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ class PrintErrorScreenState extends State<PrintErrorScreen> {
Navigator.pop(context);
},
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
backgroundColor: WidgetStateProperty.all(
const Color.fromARGB(255, 207, 124, 0)),
overlayColor: MaterialStateProperty.all(
overlayColor: WidgetStateProperty.all(
Theme.of(context).primaryColor.withOpacity(0.2)),
minimumSize: MaterialStateProperty.all(
minimumSize: WidgetStateProperty.all(
const Size(double.infinity, kToolbarHeight * 1.2)),
shape: MaterialStateProperty.all(const RoundedRectangleBorder(
shape: WidgetStateProperty.all(const RoundedRectangleBorder(
borderRadius: BorderRadius.zero)),
),
child: Text('Resume Print',
Expand All @@ -205,13 +205,13 @@ class PrintErrorScreenState extends State<PrintErrorScreen> {
Navigator.pop(context);
},
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
backgroundColor: WidgetStateProperty.all(
const Color.fromARGB(255, 207, 124, 0)),
overlayColor: MaterialStateProperty.all(
overlayColor: WidgetStateProperty.all(
Theme.of(context).primaryColor.withOpacity(0.2)),
minimumSize: MaterialStateProperty.all(
minimumSize: WidgetStateProperty.all(
const Size(double.infinity, kToolbarHeight * 1.2)),
shape: MaterialStateProperty.all(const RoundedRectangleBorder(
shape: WidgetStateProperty.all(const RoundedRectangleBorder(
borderRadius: BorderRadius.zero)),
),
child: Text('Cancel Print',
Expand Down
16 changes: 8 additions & 8 deletions lib/status/normal_error_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ class ErrorScreenState extends State<ErrorScreen> {
Navigator.pop(context);
},
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
backgroundColor: WidgetStateProperty.all(
const Color.fromARGB(255, 207, 124, 0)),
overlayColor: MaterialStateProperty.all(
overlayColor: WidgetStateProperty.all(
Theme.of(context).primaryColor.withOpacity(0.2)),
minimumSize: MaterialStateProperty.all(
minimumSize: WidgetStateProperty.all(
const Size(double.infinity, kToolbarHeight * 1.2)),
shape: MaterialStateProperty.all(const RoundedRectangleBorder(
shape: WidgetStateProperty.all(const RoundedRectangleBorder(
borderRadius: BorderRadius.zero)),
),
child: Text('Restart Printer',
Expand All @@ -205,13 +205,13 @@ class ErrorScreenState extends State<ErrorScreen> {
Navigator.pop(context);
},
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
backgroundColor: WidgetStateProperty.all(
const Color.fromARGB(255, 207, 124, 0)),
overlayColor: MaterialStateProperty.all(
overlayColor: WidgetStateProperty.all(
Theme.of(context).primaryColor.withOpacity(0.2)),
minimumSize: MaterialStateProperty.all(
minimumSize: WidgetStateProperty.all(
const Size(double.infinity, kToolbarHeight * 1.2)),
shape: MaterialStateProperty.all(const RoundedRectangleBorder(
shape: WidgetStateProperty.all(const RoundedRectangleBorder(
borderRadius: BorderRadius.zero)),
),
child: Text('Advanced Information',
Expand Down
4 changes: 2 additions & 2 deletions lib/themes/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final ThemeData themeLight = ThemeData(
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
minimumSize: MaterialStateProperty.all<Size>(
minimumSize: WidgetStateProperty.all<Size>(
const Size(88, 50)), // Set the width and height
),
),
Expand Down Expand Up @@ -88,7 +88,7 @@ final ThemeData themeDark = ThemeData(
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
minimumSize: MaterialStateProperty.all<Size>(
minimumSize: WidgetStateProperty.all<Size>(
const Size(88, 50)), // Set the width and height
),
),
Expand Down
20 changes: 10 additions & 10 deletions lib/tools/exposure_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ class ExposureScreenState extends State<ExposureScreen> {
final theme = Theme.of(context).copyWith(
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
shape: MaterialStateProperty.resolveWith<OutlinedBorder?>(
(Set<MaterialState> states) {
shape: WidgetStateProperty.resolveWith<OutlinedBorder?>(
(Set<WidgetState> states) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
side: const BorderSide(color: Colors.transparent));
},
),
minimumSize: MaterialStateProperty.resolveWith<Size?>(
(Set<MaterialState> states) {
minimumSize: WidgetStateProperty.resolveWith<Size?>(
(Set<WidgetState> states) {
return const Size(double.infinity, double.infinity);
},
),
Expand Down Expand Up @@ -263,9 +263,9 @@ class ExposureScreenState extends State<ExposureScreen> {
: () => exposeScreen('Grid'),
style: theme.elevatedButtonTheme.style
?.copyWith(
shape: MaterialStateProperty.resolveWith<
shape: WidgetStateProperty.resolveWith<
OutlinedBorder?>(
(Set<MaterialState> states) {
(Set<WidgetState> states) {
return const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(15),
Expand All @@ -289,9 +289,9 @@ class ExposureScreenState extends State<ExposureScreen> {
: () => exposeScreen('Dimensions'),
style: theme.elevatedButtonTheme.style
?.copyWith(
shape: MaterialStateProperty.resolveWith<
shape: WidgetStateProperty.resolveWith<
OutlinedBorder?>(
(Set<MaterialState> states) {
(Set<WidgetState> states) {
return RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(0));
Expand All @@ -313,9 +313,9 @@ class ExposureScreenState extends State<ExposureScreen> {
: () => exposeScreen('Blank'),
style: theme.elevatedButtonTheme.style
?.copyWith(
shape: MaterialStateProperty.resolveWith<
shape: WidgetStateProperty.resolveWith<
OutlinedBorder?>(
(Set<MaterialState> states) {
(Set<WidgetState> states) {
return const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(15),
Expand Down
8 changes: 4 additions & 4 deletions lib/tools/move_z_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ class MoveZScreenState extends State<MoveZScreen> {
final theme = Theme.of(context).copyWith(
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
shape: MaterialStateProperty.resolveWith<OutlinedBorder?>(
(Set<MaterialState> states) {
shape: WidgetStateProperty.resolveWith<OutlinedBorder?>(
(Set<WidgetState> states) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
);
},
),
minimumSize: MaterialStateProperty.resolveWith<Size?>(
(Set<MaterialState> states) {
minimumSize: WidgetStateProperty.resolveWith<Size?>(
(Set<WidgetState> states) {
return const Size(double.infinity, double.infinity);
},
),
Expand Down
2 changes: 1 addition & 1 deletion lib/util/orion_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class OrionConfig {
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.zero),
insetPadding: EdgeInsets.zero,
backgroundColor: Theme.of(context).colorScheme.background,
backgroundColor: Theme.of(context).colorScheme.surface,
child: const Center(
child: SizedBox(
height: 75,
Expand Down
2 changes: 0 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
import FlutterMacOS
import Foundation

import package_info
import path_provider_foundation
import url_launcher_macos
import window_size

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTPackageInfoPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin"))
Expand Down
6 changes: 0 additions & 6 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
PODS:
- FlutterMacOS (1.0.0)
- package_info (0.0.1):
- FlutterMacOS
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand All @@ -12,16 +10,13 @@ PODS:

DEPENDENCIES:
- FlutterMacOS (from `Flutter/ephemeral`)
- package_info (from `Flutter/ephemeral/.symlinks/plugins/package_info/macos`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
- window_size (from `Flutter/ephemeral/.symlinks/plugins/window_size/macos`)

EXTERNAL SOURCES:
FlutterMacOS:
:path: Flutter/ephemeral
package_info:
:path: Flutter/ephemeral/.symlinks/plugins/package_info/macos
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
url_launcher_macos:
Expand All @@ -31,7 +26,6 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
package_info: 6eba2fd8d3371dda2d85c8db6fe97488f24b74b2
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
url_launcher_macos: 5f437abeda8c85500ceb03f5c1938a8c5a705399
window_size: 339dafa0b27a95a62a843042038fa6c3c48de195
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Cocoa
import FlutterMacOS
import CoreWLAN

@NSApplicationMain
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
Expand Down
Loading

0 comments on commit 0b6aff7

Please sign in to comment.