- Update SDK constraints from '^3.7.0-0' to '>=3.8.0 <4.0.0' #2681
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update samples for Flutter 3.32+ compatibility
Description
This PR updates four sample projects (
asset_transformation
,analysis_defaults
,android_splash_screen
,animations
) for compatibility with Flutter 3.32+ and Dart 3.8+.Changes made:
sdk: ^3.7.0-0
tosdk: '>=3.8.0 <4.0.0'
>=3.32.0
@UIApplicationMain
with@main
)Before:
After:
Related Issues
@UIApplicationMain
Pre-launch Checklist
///
).Testing
flutter analyze
passes for all updated samplesSamples Updated
asset_transformation
analysis_defaults
android_splash_screen
animations
@UIApplicationMain
→@main
)Copilot summary
This pull request contains updates to dependencies, platform requirements, and project configurations for Flutter and iOS. The most significant changes include updating the Dart and Flutter SDK versions, increasing the minimum iOS deployment target, and adding new configurations to the iOS project files for better compatibility and build management.
Dependency and SDK Updates:
>=3.8.0 <4.0.0
and Flutter SDK version to>=3.32.0
inanalysis_defaults/pubspec.yaml
andandroid_splash_screen/pubspec.yaml
to align with the latest SDK releases. [1] [2]flutter_lints
dependency from^5.0.0
to^6.0.0
inanalysis_defaults/pubspec.yaml
.iOS Platform and Configuration Updates:
11.0
to12.0
across multiple files, includingAppFrameworkInfo.plist
,Podfile
, andRunner.xcodeproj
. [1] [2] [3] [4] [5]Runner.xcodeproj
with new build configurations, frameworks, and scripts for CocoaPods integration and build consistency. This includes adding[CP] Check Pods Manifest.lock
script phases, new.xcconfig
files, and framework references. [1] [2] [3] [4] [5]Code Quality Improvements:
Row
widget declaration inmain.dart
to usefinal
for immutability.main.dart
.Xcode Project Updates:
LastUpgradeVersion
inRunner.xcscheme
from1430
to1510
and added a custom LLDB initialization file for debugging. [1] [2] [3]