title: How can I auto-increment build number on Flutter App?
body: <p>Currently every time I build my APK I manually need to update my build version in 2 places - which seems very unautomated and counter-intuitive (I am comparing this to the Jenkins BUILD_ID).</p>
  <p>I understand that I must (and prefer it so) manually update the (semver) version - 0.2.0.</p>
  <p>But surely there must be some kind of process/setting/plugin that can automatically update the +3 on every build?  I have read a lot of posts and solutions, but none actually do what I would expect it to do (I don't really want pre-build hooks and perl regex scripts unless I have to).</p>
  <p>Note: I am not yet pushing to PlayStore - just distributing APK to core team.</p>
  <p><strong>pubspec.yaml</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>version: 0.2.0+3
  </code></pre>
  <p>and</p>
  <p><strong>local.properties</strong></p>
  <pre><code>flutter.versionName=0.2.0
  flutter.versionCode=3
  </code></pre>
  <p>I am using :</p>
  <ul>
  <li>Android Studio 4.0.2</li>
  <li>Flutter 1.22</li>
  </ul>