responsive_scaffold
responsive_scaffold copied to clipboard
Errors in example on Linux run
I cannot run example under Linux (Linux Mint 19.3 Cinnamon - based on Ubuntu 18.04).
After flutter pub get and flutter run I get:
Launching lib/main.dart on Linux in debug mode...
Exception: No Linux desktop project configured. See https://flutter.dev/desktop#add-desktop-support-to-an-existing-app to learn about adding Linux support to a project.
After flutter create . and flutter run I get:
Launching lib/main.dart on Linux in debug mode...
ERROR: ../lib/templates/list/responsive_list.dart:217:11: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
ERROR: resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: ../../../../development/flutter/packages/flutter/lib/src/material/scaffold.dart:1451:9: Context: Found this candidate, but the arguments don't match.
ERROR: const Scaffold({
ERROR: ^^^^^^^^
ERROR: ../lib/templates/list/views/tablet.dart:188:15: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
ERROR: resizeToAvoidBottomPadding: widget?.resizeToAvoidBottomPadding,
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: ../../../../development/flutter/packages/flutter/lib/src/material/scaffold.dart:1451:9: Context: Found this candidate, but the arguments don't match.
ERROR: const Scaffold({
ERROR: ^^^^^^^^
Building Linux application...
Exception: Build process failed
flutter doctor
[✓] Flutter (Channel dev, 1.26.0-17.2.pre, on Linux, locale pl_PL.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio
[✓] VS Code (version 1.53.0)
[✓] Connected device (2 available)
• No issues found!
Got similar error on Web build:
Compiling lib/main.dart for the Web...
Target dart2js failed: Exception: /opt/hostedtoolcache/flutter/1.27.0-1.0.pre-dev/x64/.pub-cache/hosted/pub.dartlang.org/responsive_scaffold-1.3.0+2/lib/templates/list/responsive_list.dart:217:11:
Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
^^^^^^^^^^^^^^^^^^^^^^^^^^
Compiling lib/main.dart for the Web... 10.0s
/opt/hostedtoolcache/flutter/1.27.0-1.0.pre-dev/x64/packages/flutter/lib/src/material/scaffold.dart:1449:9:
Info: Found this candidate, but the arguments don't match.
const Scaffold({
^^^^^^^^
/opt/hostedtoolcache/flutter/1.27.0-1.0.pre-dev/x64/.pub-cache/hosted/pub.dartlang.org/responsive_scaffold-1.3.0+2/lib/templates/list/views/tablet.dart:188:15:
Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
resizeToAvoidBottomPadding: widget?.resizeToAvoidBottomPadding,
^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/1.27.0-1.0.pre-dev/x64/packages/flutter/lib/src/material/scaffold.dart:1449:9:
Info: Found this candidate, but the arguments don't match.
const Scaffold({
^^^^^^^^
Error: Compilation failed.
Exception: Failed to compile application for the Web.
Similar error while building web Temporarily fixed build by commenting out those strings but it isn't solution
Any news on this issue? I face the same problem on web run.
I've fixed those in #34 just some deprecated stuff