Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

flutter

dart

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

like image 320
Lapa Ny Aina Tanjona Avatar asked Oct 18 '25 03:10

Lapa Ny Aina Tanjona


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 
like image 186
Behzod Faiziev Avatar answered Oct 21 '25 04:10

Behzod Faiziev


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

like image 45
Hayder Ali Avatar answered Oct 21 '25 03:10

Hayder Ali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!