-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Description
When building the project for Windows using the command flutter build windows --release, a Dart compilation error occurs due to incompatibility between the combine: ^0.5.8 package and recent Flutter versions (3.19+). The error relates to the SchedulerBinding.scheduleFrameCallback method, which was updated in Flutter to include a new parameter (scheduleNewFrame: bool), but the combine package does not implement it in its bindings (such as _AbsentSchedulerBinding and IsolateBinding). This issue only appears in Windows builds and causes the MSBuild step to fail.
This package is used for managing Isolates and MethodChannels in the background, and its lack of updates prevents successful builds.
Environment
- Flutter version: [Insert your version here, e.g., 3.24.3] (from
flutter --version) - Dart version: [Insert Dart version, e.g., 3.5.3]
- OS: Windows 11/10 (x64)
- Project: Hiddify-Optimized (fork of hiddify-next)
- Dependencies:
combine: ^0.5.8(from pubspec.yaml)
Steps to Reproduce
- Clone the project:
git clone [Project URL] && cd Hiddify-Optimized - Install dependencies:
flutter pub get - Run Windows build:
flutter build windows --release - The error appears during the Dart compilation step.
Error Log
PS C:\Users\TG\Documents\Hiddify-Optimized> flutter build windows --release
Nuget.exe not found, trying to download or use cached version.
../../AppData/Local/Pub/Cache/hosted/pub.dev/combine-0.5.8/lib/src/bindings/isolate_bindings/absent_scheduler_binding.dart(87,7): error GE5CFE876: The method '_AbsentSchedulerBinding.scheduleFrameCallback' has fewer named arguments than those of overridden method 'SchedulerBinding.scheduleFrameCallback'. [C:\Users\TG\Documents\Hiddify-Optimized\build\windows\x64\flutter\flutter_assemble.vcxproj]
../../AppData/Local/Pub/Cache/hosted/pub.dev/combine-0.5.8/lib/src/bindings/isolate_bindings/isolate_binding.dart(13,7): error G870B58C2: The implementation of 'scheduleFrameCallback' in the non-abstract class 'IsolateBinding' does not conform to its interface. [C:\Users\TG\Documents\Hiddify-Optimized\build\windows\x64\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Users\TG\Documents\Hiddify-Optimized\build\windows\x64\CMakeFiles\8006f67d4d843f09d093e784418a6d12\flutter_windows.dll.rule;C:\Users\TG\Documents\Hiddify-Optimized\build\windows\x64\CMakeFiles\875ec8628fc4623f6ed5e58c1aa4e815\flutter_assemble.rule;C:\Users\TG\Documents\Hiddify-Optimized\windows\flutter\CMakeLists.txt' exited with code 1. [C:\Users\TG\Documents\Hiddify-Optimized\build\windows\x64\flutter\flutter_assemble.vcxproj]
Building Windows application... 124.3s
Build process failed.