gskinnerTeam / flutter-folio

A platform adaptive Flutter app for desktop, mobile and web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failed

mrgithub opened this issue · comments

This is a showcase of the flutter tech stack but it doesn't build - shouldn't it be maintained?

Launching lib/main.dart on Chrome in debug mode...
lib/main.dart:1
/opt/homebrew/Caskroom/flutter/2.0.6/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.0/lib/src/visibility_detector_layer.dart:276:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
super.addToScene(builder, layerOffset);
^
Failed to compile application.
Exited (sigterm)

I have the same error. I cloned the repo and Installed Visual Studio and all the necessary tools as stated on the flutter website for windows applications. I have been using flutter for a while now so I have Visual Studio Code installed and configured for flutter. But when I run "flutter run -d windows" I get the error below
flutter-folio Error1

Below is the output of flutter doctor -v
flutter-folio Error2

Same on macos when running for chrome:

../flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.0/lib/src/visibility_detector_layer.dart:276:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    super.addToScene(builder, layerOffset);
                    ^

So for anyone else having this issue, the visibility_detector just needs an update. PR here: #68

Just modify the file pubspec.yaml, change the corresponding line to visibility_detector: ^0.2.2 for now.