title: How to run a script before flutter run and flutter build
body: <p>Because of flutter use yaml file. Compared to gradle it's too inflexible. We need dynamic change the yaml file so I found someway that execute a bash script before "flutter run" and "flutter build". </p>
  
  <p>I can execute a bash script in gitlab-ci.yaml which have a property of "script:xxx/xxx.sh". I can execute it before "flutter build apk". So it work in gitlab. But I can't get someway to execute the script in local before I execute "flutter run"</p>
  
  <p>Anybody can help me? Thanks</p>