feat: improve macOS/iOS platform integration and UI#5
Merged
Conversation
- Migrate iOS to UISceneDelegate lifecycle (FlutterSceneDelegate) - Fix auth token caching race condition on macOS/iOS by waiting for SharedPreferences initialization before checking auth status - Add macOS single-instance guard via NSRunningApplication - Add Dock icon click handler to restore hidden window - Make macOS title bar transparent and blend with app content - Inject MediaQuery top padding on macOS for seamless title bar spacing - Show dynamic track info in macOS system tray when playing - Fix bottom overflow in session settings bottom sheet - Reduce play button size on desktop platforms
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5 +/- ##
=======================================
Coverage 71.42% 71.42%
=======================================
Files 1 1
Lines 7 7
=======================================
Hits 5 5
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
FlutterSceneDelegate+FlutterImplicitEngineDelegate生命周期NSRunningApplication检测防止创建多个应用进程,点击 Dock 图标时恢复隐藏窗口fullSizeContentView),通过MediaQuery注入顶部 padding 实现无缝衔接Flexible+SingleChildScrollViewChanged Files
ios/Runner/AppDelegate.swiftios/Runner/Info.plistios/Podfile.lockios/Runner.xcodeproj/project.pbxprojios/Runner.xcworkspace/contents.xcworkspacedatalib/app.dartlib/core/services/system_tray_service.dartlib/presentation/screens/create_session_screen.dartlib/presentation/widgets/create_session/session_settings_bottom_sheet.dartmacos/Runner/AppDelegate.swiftmacos/Runner/MainFlutterWindow.swiftTest Plan