skip to Main Content

/C:/Users/AppData/Local/Pub/Cache/hosted/pub.dev/velocity_x-4.1.2/lib/src/flutter/flex.dart:454:7: Error: No named parameter with the name ‘clipBehavior’.
clipBehavior: clipBehavior,
^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compileFlutterBuildDebug’.

Process ‘command ‘C:Usersflutterbinflutter.bat” finished with non-zero exit value 1

  • Try:

Run with –stacktrace option to get the stack trace.
Run with –info or –debug option to get more log output.
Run with –scan to get full insights.

I try to flutter clean -> flutter pub get -> flutter pub add badges:^3.1.2 -> flutter pub add flutter_svg:’^2.0.10+1′ -> flutter pub upgrade -> flutter run

2

Answers


  1. i this the newest flutter version do this

    Login or Signup to reply.
  2. I think there is an incompatibility between flutter and velocity_x-4.1.2.
    You can fix this issue by modifying the package itself in the file :
    C:UsersAnisAppDataLocalPubCachehostedpub.devvelocity_x-4.1.2libsrcflutterflex.dart

    comment the line 454 which cause the problem in the line:

    return OverflowBar(
      key: key,
      //clipBehavior: clipBehavior, //comment this line
      overflowAlignment: overflowAlignment,
      overflowDirection: overflowDirection,
      overflowSpacing: overflowSpacing,
      spacing: spacing,
      textDirection: textDirection,
      children: children,
    );
    

    do this until velocity release a new version to fix the error

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search