LastMonopoly / scaled_app

Scale the entire UI design proportionally, useful when your UI design is fixed-width.
https://pub.dev/packages/scaled_app
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Flutter 3.22.0 build failed #17

Closed ClubAce closed 1 month ago

ClubAce commented 1 month ago

Flutter 3.22.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5dcb86f68f (6 days ago) • 2024-05-09 07:39:20 -0500 Engine • revision f6344b75dc Tools • Dart 3.4.0 • DevTools 2.34.3

pubspec.yaml scaled_app: ^2.2.0

../../../.pub-cache/hosted/pub.dev/scaled_app-2.2.0/lib/scaled_app.dart:85:9: Error: No named parameter with the name 'size'. size: physicalSize / devicePixelRatioScaled, ^^^^ ../../flutter/packages/flutter/lib/src/rendering/view.dart:28:9: Context: Found this candidate, but the arguments don't match. const ViewConfiguration({ ^^^^^^^^^^^^^^^^^

ClubAce commented 1 month ago

I've tried changing the key and value in ViewConfiguration on line 85 from size: physicalSize / devicePixelRatioScaled to physicalConstraints: BoxConstraints.tight(physicalSize / devicePixelRatioScaled) but this just makes the app hang in the splash screen without any errors in the debug console.

LastMonopoly commented 1 month ago

Please upgrade to scaled_app 2.3.0 @ClubAce