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

Superclass has no method named 'createViewConfiguration'. #11

Closed m-zarif closed 7 months ago

m-zarif commented 7 months ago

/C:/Users/UserName/AppData/Local/Pub/Cache/hosted/pub.dev/scaled_app-2.1.0/lib/scaled_app.dart:81:20: Error: Superclass has no method named 'createViewConfiguration'. return super.createViewConfiguration(); ^^^^^^^^^^^^^^^^^^^^^^^

Flutter (Channel stable, 3.16.0, on Microsoft Windows [Version 10.0.22621.2715], locale en-US) • Flutter version 3.16.0 on channel stable at flutter-sdk-address • Upstream repository https://github.com/flutter/flutter.git • Framework revision db7ef5bf9f (4 days ago), 2023-11-15 11:25:44 -0800 • Engine revision 74d16627b9 • Dart version 3.2.0 • DevTools version 2.28.2

LastMonopoly commented 7 months ago

Will take a look

chitkosarvesh commented 7 months ago

I started having this issue too recently! Strangely, it happens ONLY on the appcenter builds and nowhere else. Here's the flutter doctor from the appcenter pipeline.

[✓] Flutter (Channel stable, 3.16.0, on macOS 11.7.10 20G1427 darwin-x64, locale en)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    ✗ Flutter requires Xcode 14 or higher.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] Network resources

And, here's the error:

> Task :app:compileFlutterBuildRelease
../../../.pub-cache/hosted/pub.dev/scaled_app-2.1.0/lib/scaled_app.dart:81:20: Error: Superclass has no method named 'createViewConfiguration'.
      return super.createViewConfiguration();
                   ^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
rologr35 commented 7 months ago

@LastMonopoly https://github.com/LastMonopoly/scaled_app/pull/12 this is a PR with a minor change to adapt the lib to the new RenderView class.

LastMonopoly commented 7 months ago

Thank you @rologr35 The bug is fixed in 2.2.0