title: Flutter: In ReorderableListView: Cannot find the correct Provider<...> when dragging
body: <p>I have my theme class that I hang in the widget tree using <code>Provider</code>:</p>
  <pre class="lang-dart prettyprint-override"><code>Scaffold(
    body: Provider&lt;AppControlsThemeData&gt;(
      create: (_) =&gt; ...,
      child: ...
    ),
  );
  </code></pre>
  <p>Then somewhere below I read it with</p>
  <pre class="lang-dart prettyprint-override"><code>final themeData = Provider.of&lt;AppControlsThemeData&gt;(context);
  </code></pre>
  <p>It works alright until I try to use this lookup in <code>ReorderableListView</code>. When I drag the widget that does the lookup, it fails to find the provider:</p>
  <p><a href="https://i.stack.imgur.com/2Lmj7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Lmj7.png" alt="enter image description here" /></a></p>
  <p>How do I hang some object in the widget tree so that its lookup works while dragging? I hang it as far as it is reasonable -- right under the <code>Scaffold</code>. Looks like this draggable widget gets detached from my screen's tree and I cannot control what is above it in its new tree.</p>