Skip to content

Errors in example on Linux run #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
digit81 opened this issue Feb 5, 2021 · 4 comments
Open

Errors in example on Linux run #29

digit81 opened this issue Feb 5, 2021 · 4 comments

Comments

@digit81
Copy link

digit81 commented Feb 5, 2021

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!
@epic-unicorn
Copy link

epic-unicorn commented Feb 17, 2021

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.

@nikto-b
Copy link

nikto-b commented Mar 2, 2021

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

@flogiroud
Copy link

flogiroud commented Apr 6, 2021

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

@Leptopoda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants