Cannot build project on Windows with flutter build #2179

Closed
opened 2026-02-21 00:15:20 -05:00 by deekerman · 1 comment
Owner

Originally created by @aliab282 on GitHub (Oct 5, 2023).

Bug Description

I just cloned the project and tried to build on a Windows client using flutter build windows and I get the following errors:

lib/models/model.dart(856,17): error G6EB16203: The return type of the method 'ViewStyle.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/models/model.dart(1945,17): error G6EB16203: The return type of the method 'Display.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/generated_bridge.dart(5911,9): error GA89667EF: The parameter 'ptr' of the method 'RustdeskWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type
, 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/generated_bridge.freezed.dart(121,17): error G6EB16203: The return type of the method '_$EventToUI_EventImpl.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/generated_bridge.freezed.dart(237,17): error G6EB16203: The return type of the method '_$EventToUI_RgbaImpl.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/models/model.dart(1128,24): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/models/model.dart(1755,30): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]
lib/models/model.dart(1756,28): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj]

Is there anything that I miss in the configs or something here?

How to Reproduce

Build project on a Windows client with flutter build windows

Expected Behavior

Should be built without errors

Operating system(s) on local side and remote side

Windows 11

RustDesk Version(s) on local side and remote side

1.2.2

Screenshots

Don't have any

Additional Context

No response

Originally created by @aliab282 on GitHub (Oct 5, 2023). ### Bug Description I just cloned the project and tried to build on a Windows client using `flutter build windows` and I get the following errors: ```bat lib/models/model.dart(856,17): error G6EB16203: The return type of the method 'ViewStyle.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/models/model.dart(1945,17): error G6EB16203: The return type of the method 'Display.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/generated_bridge.dart(5911,9): error GA89667EF: The parameter 'ptr' of the method 'RustdeskWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type , 'Pointer<NativeFunction<Bool Function(Int64, Pointer<Void>)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/generated_bridge.freezed.dart(121,17): error G6EB16203: The return type of the method '_$EventToUI_EventImpl.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/generated_bridge.freezed.dart(237,17): error G6EB16203: The return type of the method '_$EventToUI_RgbaImpl.==' is 'NativeFunction<Int Function(Pointer<Int>)>', which does not match the return type, 'bool', of the overridden method, 'Object.=='. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/models/model.dart(1128,24): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/models/model.dart(1755,30): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] lib/models/model.dart(1756,28): error G79957FC8: A value of type 'bool' can't be assigned to a variable of type 'NativeFunction<Int Function(Pointer<Int>)>'. [C:\Users\asus\StudioProjects\rustdeskkk\flutter\build\windows\flutter\flutter_assemble.vcxproj] ``` Is there anything that I miss in the configs or something here? ### How to Reproduce Build project on a Windows client with `flutter build windows` ### Expected Behavior Should be built without errors ### Operating system(s) on local side and remote side Windows 11 ### RustDesk Version(s) on local side and remote side 1.2.2 ### Screenshots Don't have any ### Additional Context _No response_
deekerman 2026-02-21 00:15:20 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Oct 5, 2023):

#763

@rustdesk commented on GitHub (Oct 5, 2023): #763
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#2179
No description provided.