title: How to fix a diagnostic error in flutter?
body: <p>When I run the application gradle is failing to build</p>
  
  <blockquote>
    <p>Compiler message:
    file:///C:/Users/Wellick/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16:
    Error: The argument type 'String' can't be assigned to the parameter
    type 'DiagnosticsNode'.
     - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart'
    ('file:///C:/Users/Wellick/Documents/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to
    'DiagnosticsNode'.
          context: context);
                   ^ Compiler failed on C:\Users\Wellick\Desktop\flutter\rapidinho-master\lib\main.dart</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>Where: Script 'C:\Users\Wellick\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle'
    line: 665</p></li>
    <li><p>What went wrong: Execution failed for task ':app:compileflutterBuildDebugArm'.</p>
    
    <blockquote>
      <p>Process 'command 'C:\Users\Wellick\Documents\flutter\bin\flutter.bat'' finished with
      non-zero exit value 1</p>
    </blockquote></li>
    <li><p>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.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 24s Finished with error: Gradle task assembleDebug
    failed with exit code 1</p>
  </blockquote>