responsive_scaffold icon indicating copy to clipboard operation
responsive_scaffold copied to clipboard

Errors in example on Linux run

Open digit81 opened this issue 4 years ago • 4 comments

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!

digit81 avatar Feb 05 '21 08:02 digit81

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.

epic-unicorn avatar Feb 17 '21 07:02 epic-unicorn

Similar error while building web Temporarily fixed build by commenting out those strings but it isn't solution

nikto-b avatar Mar 02 '21 20:03 nikto-b

Any news on this issue? I face the same problem on web run.

flogiroud avatar Apr 06 '21 00:04 flogiroud

I've fixed those in #34 just some deprecated stuff

Leptopoda avatar May 18 '21 14:05 Leptopoda