Giter Site home page Giter Site logo

shiroyacha / flutter_design Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 8.0 22.16 MB

Provide powerfull tools to help you build your Flutter design system.

License: BSD 3-Clause "New" or "Revised" License

Dart 92.88% Kotlin 0.02% Swift 0.28% Objective-C 0.01% HTML 0.98% Ruby 0.46% JavaScript 2.52% TypeScript 1.65% SCSS 1.20%
design flutter

flutter_design's Issues

Dando problema mesmo adicionando dependency_overrides

I created a new project, I did the steps informed, but even adding everything as informed I still get the error:

% flutter packages pub run build_runner build --delete-conflicting-outputs

[INFO] Generating build script...
[INFO] Generating build script completed, took 586ms

[INFO] Precompiling build script......
[WARNING] ../.pub-cache/hosted/pub.dartlang.org/flutter_design_codegen-0.0.12-pre+2/lib/src/ast.dart:29:7: Error: The non-abstract class 'ToSourceIgnoringDesignAnnotationsVisitor' is missing implementations for these members:

  • AstVisitor.visitConstructorSelector
  • AstVisitor.visitEnumConstantArguments
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class ToSourceIgnoringDesignAnnotationsVisitor implements AstVisitor {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../.pub-cache/hosted/pub.dartlang.org/analyzer-3.4.1/lib/dart/ast/ast.dart:405:6: Context: 'AstVisitor.visitConstructorSelector' is defined here.
R? visitConstructorSelector(ConstructorSelector node);
^^^^^^^^^^^^^^^^^^^^^^^^
../.pub-cache/hosted/pub.dartlang.org/analyzer-3.4.1/lib/dart/ast/ast.dart:423:6: Context: 'AstVisitor.visitEnumConstantArguments' is defined here.
R? visitEnumConstantArguments(EnumConstantArguments node);
^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 806ms

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

Problem to run flutter packages pub run build_runner build --delete-conflicting-outputs

Failed to build build_runner:build_runner:
../../.pub-cache/hosted/pub.dartlang.org/build_resolvers-2.0.9/lib/src/resolver.dart:442:13: Error: Method not found: 'buildSdkSummary2'.
await buildSdkSummary2(
^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/build_resolvers-2.0.9/lib/src/build_asset_uri_resolver.dart:88:20: Error: The method 'applyPendingFileChanges' isn't defined for the class 'AnalysisDriverForPackageBuild'.

  • 'AnalysisDriverForPackageBuild' is from 'package:analyzer/src/clients/build_resolvers/build_resolvers.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/src/clients/build_resolvers/build_resolvers.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'applyPendingFileChanges'.
    await driver.applyPendingFileChanges();
    ^^^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:805:18: Error: The getter 'superclass' isn't defined for the class 'ClassTypeAlias'.
  • 'ClassTypeAlias' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclass'.
    visit(node.superclass);
    ^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:1072:16: Error: The getter 'type' isn't defined for the class 'ConstructorName'.
  • 'ConstructorName' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'type'.
    visit(node.type);
    ^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:1170:26: Error: The getter 'arguments' isn't defined for the class 'EnumConstantDeclaration'.
  • 'EnumConstantDeclaration' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'arguments'.
    var arguments = node.arguments;
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:1432:16: Error: The getter 'superclass' isn't defined for the class 'ExtendsClause'.
  • 'ExtendsClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclass'.
    visit(node.superclass);
    ^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2058:51: Error: The getter 'interfaces' isn't defined for the class 'ImplementsClause'.
  • 'ImplementsClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'interfaces'.
    _visitCombinator(node.implementsKeyword, node.interfaces);
    ^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2323:38: Error: The getter 'superclassConstraints' isn't defined for the class 'OnClause'.
  • 'OnClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclassConstraints'.
    if (onClause != null && onClause.superclassConstraints.length == 1) {
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2327:22: Error: The getter 'superclassConstraints' isn't defined for the class 'OnClause'.
  • 'OnClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclassConstraints'.
    visit(onClause.superclassConstraints.single);
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2334:38: Error: The getter 'superclassConstraints' isn't defined for the class 'OnClause'.
  • 'OnClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclassConstraints'.
    if (onClause != null && onClause.superclassConstraints.length > 1) {
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2385:43: Error: The getter 'superclassConstraints' isn't defined for the class 'OnClause'.
  • 'OnClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'superclassConstraints'.
    _visitCombinator(node.onKeyword, node.superclassConstraints);
    ^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/dart_style-2.2.3/lib/src/source_visitor.dart:2804:45: Error: The getter 'mixinTypes' isn't defined for the class 'WithClause'.
  • 'WithClause' is from 'package:analyzer/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dartlang.org/analyzer-3.2.0/lib/dart/ast/ast.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'mixinTypes'.
    _visitCombinator(node.withKeyword, node.mixinTypes);
    ^^^^^^^^^^
    pub finished with exit code 1

Code generation not working

When I'm trying to build code it gives me this warning and errors then fails the build.

[WARNING] ../../../Dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_design_codegen-0.0.11-pre+1/lib/src/ast.dart:24:7: Error: The non-abstract class 'ToSourceIgnoringDesignAnnotationsVisitor' is missing implementations for these members:

  • AstVisitor.visitConstructorSelector
  • AstVisitor.visitEnumConstantArguments
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class ToSourceIgnoringDesignAnnotationsVisitor implements AstVisitor {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../Dev/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-3.3.1/lib/dart/ast/ast.dart:405:6: Context: 'AstVisitor.visitConstructorSelector' is defined here.
R? visitConstructorSelector(ConstructorSelector node);
^^^^^^^^^^^^^^^^^^^^^^^^
../../../Dev/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-3.3.1/lib/dart/ast/ast.dart:423:6: Context: 'AstVisitor.visitEnumConstantArguments' is defined here.
R? visitEnumConstantArguments(EnumConstantArguments node);
^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 949ms

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.