title: Flutter Extract Method vs. Extract Widget vs. Extract Flutter Widget in androidStudio
body: <p>Hi I'm new to Flutter and I have several questions regarding <code>Extract Method</code> and <code>Extract Widget</code> in Android Studio.</p>
  <ol>
  <li><p>When it comes to making code clean and reusable,
  what is the difference between <code>Extract Method</code> and <code>Extract Widget</code>?
  When do I know what to use? It seems they both work fine to me.</p>
  </li>
  <li><p>If I <code>Right click</code> on a Widget that I want to extract and go to <code>Refactor</code> -&gt; <code>Extract Flutter Widget</code> then it works, however if I <code>Left click</code> on a Widget to focus and use the hotkey <code>Command+Option+W</code>, it doesn't work. Why is it happening? Moreover if I go to <code>Flutter outline</code> -&gt; select the Widget -&gt; <code>Right click</code> -&gt; <code>Extract Widget</code> then it shows the same result. What's the difference between <code>Extract Flutter Widget</code> and <code>Extract Widget</code>?</p>
  </li>
  </ol>
  <p>Thank you.</p>