bitsdojo / bitsdojo_window

A Flutter package that makes it easy to customize and work with your Flutter desktop app window.
http://www.youtube.com/watch?v=bee2AHQpGK4
MIT License
815 stars 229 forks source link

Flutter-beta build failure: 2.11 (is next release version) #148

Closed Dall127 closed 2 years ago

Dall127 commented 2 years ago

When using 'Flutter 2.11.0-0.1.pre', the build fails at

: Error: 'Size' is imported from both 'dart:ffi' and 'dart:ui'.
    Size sizeToSet = Size(width, height);
                     ^^^^

at ../…/src/window.dart:228

This isn't the only line failing in this file, but it seems to be limited to this file, as building for the web on this branch of beta works.

A1000carZ commented 2 years ago

Same issue.

DuttaAB-dev commented 2 years ago

Same issue with flutter master 2.11.0-0.0.pre.537

bostrot commented 2 years ago

Same issue. Reverting back to v2.8 seems to work:

flutter channel flutter-2.8-candidate.20
flutter upgrade
simonbengtsson commented 2 years ago

PR fixing this issue: https://github.com/bitsdojo/bitsdojo_window/pull/149. Can be used like this:

dependency_overrides:
  bitsdojo_window_linux:
    git:
      url: https://github.com/CorvusYe/bitsdojo_window
      path: bitsdojo_window_linux
      ref: master
  bitsdojo_window_windows:
    git:
      url: https://github.com/CorvusYe/bitsdojo_window
      path: bitsdojo_window_windows
      ref: master

dependencies
  # https://github.com/bitsdojo/bitsdojo_window/issues/148
  bitsdojo_window:
    git:
      url: https://github.com/CorvusYe/bitsdojo_window
      path: bitsdojo_window
      ref: master
bitsdojo commented 2 years ago

Fixed in bitsdojo_window: ^0.1.2 - https://github.com/bitsdojo/bitsdojo_window/commit/f320b623db107b03a5976fd88e52ec4fe81fa0c9

Closing this issue. Please re-open if needed.