Skip to content

Update to version 1.0.0 and migrate to Dart 3.0 / Flutter 3.41#278

Open
Abdulrahman-Al-Sheikh wants to merge 1 commit intobitsdojo:masterfrom
Abdulrahman-Al-Sheikh:master
Open

Update to version 1.0.0 and migrate to Dart 3.0 / Flutter 3.41#278
Abdulrahman-Al-Sheikh wants to merge 1 commit intobitsdojo:masterfrom
Abdulrahman-Al-Sheikh:master

Conversation

@Abdulrahman-Al-Sheikh
Copy link
Copy Markdown

  • Upgrade SDK constraints to >=3.0.0 <4.0.0
  • Update dependencies: win32 to ^6.0.1, ffi to ^2.2.0, and plugin_platform_interface to ^2.1.8
  • Use base class modifier for FFI Struct classes to comply with Dart 3 requirements
  • Update Windows implementation to use HWND, HMONITOR, WPARAM, and LPARAM types from win32 package
  • Refactor native API lookups and message passing to use new win32 type definitions
  • Update window_button.dart to use Color.withValues(alpha: ...) instead of withOpacity
  • General code cleanup, formatting, and improved import organization across platform implementations

* Upgrade SDK constraints to `>=3.0.0 <4.0.0`
* Update dependencies: `win32` to `^6.0.1`, `ffi` to `^2.2.0`, and `plugin_platform_interface` to `^2.1.8`
* Use `base` class modifier for FFI `Struct` classes to comply with Dart 3 requirements
* Update Windows implementation to use `HWND`, `HMONITOR`, `WPARAM`, and `LPARAM` types from `win32` package
* Refactor native API lookups and message passing to use new `win32` type definitions
* Update `window_button.dart` to use `Color.withValues(alpha: ...)` instead of `withOpacity`
* General code cleanup, formatting, and improved import organization across platform implementations
abstract class DesktopWindow {
DesktopWindow();
int? get handle;
HWND? get handle;
Copy link
Copy Markdown

@nvi9 nvi9 Apr 22, 2026

Choose a reason for hiding this comment

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

Probably better keep this with type int? as DesktopWindow is used on other platforms too, not just on Windows. Also importing win32 in a platform interface is a bit questionable.

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.

2 participants