<p dir="auto">the package dson_core-0.13.2 raises a compiler error, but <code class="notranslate">flutter build apk</code> does not stops and produces a crashing apk, here the output of the command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running &quot;flutter packages get&quot; in flutter_seafuture...       0.5s
Initializing gradle...                                       0.6s
Resolving dependencies...                                    1.1s
Running 'gradlew assembleRelease'...                             
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
compiler message: file:///home/sherpya/.pub-cache/hosted/pub.dartlang.org/dson_core-0.13.2/lib/src/deserializer.dart:167:43: Error: The method 'add' isn't defined for the class 'dart._internal::EfficientLengthIterable&lt;dynamic&gt;'.
compiler message: Try correcting the name to the name of an existing method, or defining a method named 'add'.
compiler message:   fillerList.forEach((item) =&gt; resultList.add(_convertValue(subType, item, &quot;@LIST_ITEM&quot;)));
compiler message:                                           ^
Compiler terminated unexpectedly.
Built build/app/outputs/apk/release/app-release.apk (9.0MB)."><pre class="notranslate"><code class="notranslate">Running "flutter packages get" in flutter_seafuture...       0.5s
Initializing gradle...                                       0.6s
Resolving dependencies...                                    1.1s
Running 'gradlew assembleRelease'...                             
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
compiler message: file:///home/sherpya/.pub-cache/hosted/pub.dartlang.org/dson_core-0.13.2/lib/src/deserializer.dart:167:43: Error: The method 'add' isn't defined for the class 'dart._internal::EfficientLengthIterable&lt;dynamic&gt;'.
compiler message: Try correcting the name to the name of an existing method, or defining a method named 'add'.
compiler message:   fillerList.forEach((item) =&gt; resultList.add(_convertValue(subType, item, "@LIST_ITEM")));
compiler message:                                           ^
Compiler terminated unexpectedly.
Built build/app/outputs/apk/release/app-release.apk (9.0MB).
</code></pre></div>
<p dir="auto">After two runs the compiler error disappears but obviously the apk is incorrect</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Initializing gradle...                                       0.6s
Resolving dependencies...                                    0.9s
Running 'gradlew assembleRelease'...                             
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
Built build/app/outputs/apk/release/app-release.apk (9.0MB)."><pre class="notranslate"><code class="notranslate">Initializing gradle...                                       0.6s
Resolving dependencies...                                    0.9s
Running 'gradlew assembleRelease'...                             
Configuration 'compile' in project ':barcode_scan' is deprecated. Use 'implementation' instead.
Built build/app/outputs/apk/release/app-release.apk (9.0MB).
</code></pre></div>
<p dir="auto">Using nested Scaffolds can cause unexpected behaviors that rush new issues into this repository,<br>
to prevent further issue reports related, I suggest an assertion in the Scaffold Class just for Debug Mode:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="assert(() {
  assert(context.ancestorWidgetOfExactType(Scaffold) == null);
});"><pre class="notranslate"><code class="notranslate">assert(() {
  assert(context.ancestorWidgetOfExactType(Scaffold) == null);
});
</code></pre></div>
<p dir="auto">These are some of the issues:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="369795799" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/23051" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/23051/hovercard" href="https://github.com/flutter/flutter/issues/23051">#23051</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="348158064" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/20289" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/20289/hovercard" href="https://github.com/flutter/flutter/issues/20289">#20289</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="257560274" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/12084" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/12084/hovercard" href="https://github.com/flutter/flutter/issues/12084">#12084</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="348248130" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/20295" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/20295/hovercard" href="https://github.com/flutter/flutter/issues/20295">#20295</a></li>
</ul>