'Size' is imported from both 'dart:ffi' and 'dart:ui' Flutter 3

Viewed 808

After upgrading my flutter from 2.10.5 to 3.0.0, I have those errors on my android studio and the project don't build anymore on windows 10. How can I solve this problems. Thanks

'Size' is imported from both 'dart:ffi' and 'dart:ui'.

enter image description here

2 Answers

bitsdojo_window package seems to have issues when Flutter 3 was introduced. One of possible ways is to run this command on your terminal

dart fix --apply

and

flutter pub upgrade 

This happens because of Flutter 3.0. This package needs to get updated for Flutter 3.0 check This Link for the answer it requires an update which the developer said he's working on it

Related