Skip to content

Commit 43e23a0

Browse files
committedNov 17, 2023
build: Update dart sdk config
Signed-off-by: CaiJingLong <cjl_spy@163.com>
1 parent dbc82b7 commit 43e23a0

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed
 

‎example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MyApp extends StatelessWidget {
1717
textStyle: const TextStyle(fontSize: 19.0, color: Colors.white),
1818
backgroundColor: Colors.grey,
1919
animationCurve: Curves.easeIn,
20-
animationBuilder: const Miui10AnimBuilder(),
20+
animationBuilder: const Miui10AnimBuilder().call,
2121
animationDuration: const Duration(milliseconds: 200),
2222
duration: const Duration(seconds: 3),
2323
child: MaterialApp(
@@ -62,7 +62,7 @@ class _MyHomePageState extends State<MyHomePage> {
6262
backgroundColor: Colors.black.withOpacity(0.8),
6363
radius: 13.0,
6464
textStyle: const TextStyle(fontSize: 18.0),
65-
animationBuilder: const Miui10AnimBuilder(),
65+
animationBuilder: const Miui10AnimBuilder().call,
6666
);
6767

6868
showToast(

‎example/macos/Runner.xcodeproj/project.pbxproj

+1-13
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2727
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2828
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29-
33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; };
30-
33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
31-
D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; };
32-
D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
3329
/* End PBXBuildFile section */
3430

3531
/* Begin PBXContainerItemProxy section */
@@ -49,8 +45,6 @@
4945
dstPath = "";
5046
dstSubfolderSpec = 10;
5147
files = (
52-
D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */,
53-
33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */,
5448
);
5549
name = "Bundle Framework";
5650
runOnlyForDeploymentPostprocessing = 0;
@@ -69,22 +63,18 @@
6963
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = "<group>"; };
7064
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = "<group>"; };
7165
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = "<group>"; };
72-
33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; };
7366
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
7467
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
7568
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
7669
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
7770
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
78-
D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; };
7971
/* End PBXFileReference section */
8072

8173
/* Begin PBXFrameworksBuildPhase section */
8274
33CC10EA2044A3C60003C045 /* Frameworks */ = {
8375
isa = PBXFrameworksBuildPhase;
8476
buildActionMask = 2147483647;
8577
files = (
86-
D73912F022F37F9E000D13A0 /* App.framework in Frameworks */,
87-
33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */,
8878
);
8979
runOnlyForDeploymentPostprocessing = 0;
9080
};
@@ -138,8 +128,6 @@
138128
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
139129
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
140130
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
141-
D73912EF22F37F9E000D13A0 /* App.framework */,
142-
33D1A10322148B71006C7A3E /* FlutterMacOS.framework */,
143131
);
144132
path = Flutter;
145133
sourceTree = "<group>";
@@ -260,7 +248,7 @@
260248
);
261249
runOnlyForDeploymentPostprocessing = 0;
262250
shellPath = /bin/sh;
263-
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n";
251+
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
264252
};
265253
33CC111E2044C6BF0003C045 /* ShellScript */ = {
266254
isa = PBXShellScriptBuildPhase;

‎example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 3.3.0+3
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <3.0.0"
7+
sdk: ">=2.17.0 <4.0.0"
88
flutter: ">=3.0.0"
99

1010
dependencies:

‎pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/OpenFlutter/flutter_oktoast
44
version: 3.3.2+1
55

66
environment:
7-
sdk: '>=2.17.0 <3.0.0'
7+
sdk: '>=2.17.0 <4.0.0'
88
flutter: '>=3.0.0'
99

1010
dependencies:

‎test/toast_test.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2021/11/5 15:53
4-
///
1+
//
2+
// [Author] Alex (https://github.com/AlexV525)
3+
// [Date] 2021/11/5 15:53
4+
//
55
import 'package:flutter/material.dart' hide Overlay, OverlayEntry, OverlayState;
66
import 'package:flutter_test/flutter_test.dart';
77
import 'package:oktoast/src/core/position.dart';

0 commit comments

Comments
 (0)
Please sign in to comment.