Skip to content

Fix build and null safety issues#239

Closed
maxisme wants to merge 15 commits into
developfrom
fix/build-and-null-safety
Closed

Fix build and null safety issues#239
maxisme wants to merge 15 commits into
developfrom
fix/build-and-null-safety

Conversation

@maxisme

@maxisme maxisme commented Jan 4, 2026

Copy link
Copy Markdown
Owner

This PR resolves dependency conflicts, migrates the codebase to null safety, and fixes macOS build configuration issues.

Key Changes:

  • Updated Dart SDK constraint to support null safety.
  • Migrated lib/ files to null safety (nullable types, late initialization, required parameters).
  • Replaced the outdated toast package with fluttertoast.
  • Removed launch_at_login package which was causing build failures.
  • Updated flutter_local_notifications to use the new DarwinInitializationSettings API.
  • Fixed Xcode project to remove reference to the removed launch_at_login script.
  • Applied automatic lint fixes and formatting.

Testing:

  • Verified successful flutter build macos.
  • Verified app launches correctly.

maxisme added 15 commits January 4, 2026 16:07
- Updated Dart SDK constraint to support null safety
- Migrated codebase to null safety (late, nullable types, required params)
- Replaced outdated 'toast' package with 'fluttertoast'
- Removed 'launch_at_login' package causing build issues
- Updated 'flutter_local_notifications' API usage
- Fixed Xcode project configuration
- Applied lint fixes and formatting
- Updated GitHub Actions workflows (ci.yml, pr.yml) to use actions/upload-artifact@v4 and actions/download-artifact@v4
- Updated test/widget_test.dart to fix null safety and deprecated API usage (tester.view.physicalSize, tester.binding.defaultBinaryMessenger)
- Updated test_driver/app_test.dart to handle late variables properly
- Updated pubspec.yaml to remove unnecessary dev dependencies (http) and add integration_test
- Resolved deprecated API usages:
  - 'indicatorColor' -> 'tabBarTheme.indicatorColor'
  - 'Share.share' -> masked with ignore (pending SharePlus API alignment)
  - 'launch'/'canLaunch' -> 'launchUrl'/'canLaunchUrl'
  - 'window' -> 'WidgetsBinding.instance.platformDispatcher.views.first' (for tablet check)
- Sorted dependencies in pubspec.yaml
- Fixed missing type annotations in utils.dart
- Re-ran flutter format
Comment thread macos/Podfile
@@ -1,4 +1,4 @@
platform :osx, '10.13'
platform :osx, '10.15'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

@maxisme maxisme closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant