From 61f668b9e707198059a57e9b2cb647523112507b Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot Date: Sat, 14 Dec 2024 22:47:52 +0100 Subject: [PATCH] Fix warnings --- fireworks/pubspec.lock | 10 +++++----- fireworks_demo/lib/main.dart | 9 +++++---- fireworks_demo/macos/Podfile.lock | 2 +- .../macos/Runner.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- fireworks_demo/pubspec.lock | 20 ++++++------------- fireworks_demo/pubspec.yaml | 3 ++- 7 files changed, 21 insertions(+), 27 deletions(-) diff --git a/fireworks/pubspec.lock b/fireworks/pubspec.lock index 7bc84a3..35894d4 100644 --- a/fireworks/pubspec.lock +++ b/fireworks/pubspec.lock @@ -90,18 +90,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.12.0" path: dependency: transitive description: @@ -268,5 +268,5 @@ packages: source: hosted version: "0.2.0" sdks: - dart: ">=3.2.0 <4.0.0" + dart: ">=3.3.0-0 <4.0.0" flutter: ">=2.10.0-0" diff --git a/fireworks_demo/lib/main.dart b/fireworks_demo/lib/main.dart index dc31a44..3b741f1 100644 --- a/fireworks_demo/lib/main.dart +++ b/fireworks_demo/lib/main.dart @@ -4,10 +4,11 @@ import 'package:fireworks/fireworks.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:url_launcher/url_launcher_string.dart'; -import 'package:url_strategy/url_strategy.dart'; +import 'package:flutter_web_plugins/url_strategy.dart'; void main() { - setPathUrlStrategy(); + usePathUrlStrategy(); + setUrlStrategy(PathUrlStrategy()); runApp(MaterialApp( title: 'Fireworks', theme: ThemeData( @@ -94,7 +95,7 @@ class _FireworksState extends State<_Fireworks> child: Tooltip( message: 'fireworks repo on GitHub', child: MouseRegion( - cursor: MaterialStateMouseCursor.clickable, + cursor: WidgetStateMouseCursor.clickable, child: GestureDetector( onTap: () { launchUrlString( @@ -117,7 +118,7 @@ class _FireworksState extends State<_Fireworks> child: Tooltip( message: '@creativemaybeno on Twitter', child: MouseRegion( - cursor: MaterialStateMouseCursor.clickable, + cursor: WidgetStateMouseCursor.clickable, child: GestureDetector( onTap: () { launchUrlString( diff --git a/fireworks_demo/macos/Podfile.lock b/fireworks_demo/macos/Podfile.lock index 268e3b6..67cc3e8 100644 --- a/fireworks_demo/macos/Podfile.lock +++ b/fireworks_demo/macos/Podfile.lock @@ -26,4 +26,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 -COCOAPODS: 1.12.0 +COCOAPODS: 1.15.2 diff --git a/fireworks_demo/macos/Runner.xcodeproj/project.pbxproj b/fireworks_demo/macos/Runner.xcodeproj/project.pbxproj index 3bf3357..1989747 100644 --- a/fireworks_demo/macos/Runner.xcodeproj/project.pbxproj +++ b/fireworks_demo/macos/Runner.xcodeproj/project.pbxproj @@ -203,7 +203,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { diff --git a/fireworks_demo/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/fireworks_demo/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 46dd21e..ec8878b 100644 --- a/fireworks_demo/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/fireworks_demo/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =3.2.0 <4.0.0" + dart: ">=3.3.0-0 <4.0.0" flutter: ">=3.16.0" diff --git a/fireworks_demo/pubspec.yaml b/fireworks_demo/pubspec.yaml index 5bc0edc..82dde3f 100644 --- a/fireworks_demo/pubspec.yaml +++ b/fireworks_demo/pubspec.yaml @@ -10,12 +10,13 @@ environment: dependencies: flutter: sdk: flutter + flutter_web_plugins: + sdk: flutter fireworks: path: ../fireworks url_launcher: ^6.0.2 - url_strategy: ^0.2.0 dev_dependencies: pedantic: ^1.11.0