- A Linux, Mac OS X, or Windows machine (to run and compile iOS-specific parts you'll need access to a Mac OS X machine);
- git (used for source version control, installation instructions can be found here);
- The Flutter SDK (installation instructions can be found here);
- A personal GitHub account (if you don't have one, you can sign up for free here)
- Fork
https://github.com/Baseflow/octo_imageinto your own GitHub account. If you already have a fork and are moving to a new computer, make sure you update your fork. - If you haven't configured your machine with an SSH key that's known to GitHub, follow GitHub's directions to generate an SSH key.
- Clone your forked repo on your local development machine:
git clone git@github.com:<your_name_here>/octo_image.git - Change into the
octo_imagedirectory:cd octo_image - Add an upstream to the original repo, so you fetch from the main repository and not your clone:
git remote add upstream git@github.com:Baseflow/octo_image.git
- Change into the example directory:
cd example - Run the app:
flutter run
We really appreciate contributions via GitHub pull requests. To contribute, take the following steps:
- Make sure you are up to date with the latest code on
main:git fetch upstreamgit checkout upstream/main -b <name_of_your_branch>
- Apply your changes
- Bump the
version:inpubspec.yaml(following semver) and add a matching## [x.y.z] - YYYY-MM-DDentry toCHANGELOG.mddescribing what changed. Docs-only and CI-only changes don't bump. - Verify your changes and fix potential warnings/errors:
- Check formatting:
dart format . - Run static analysis:
flutter analyze - Run unit tests:
flutter test
- Check formatting:
- Commit your changes:
git commit -am "<your informative commit message>" - Push changes to your fork:
git push origin <name_of_your_branch>
Send us your pull request:
- Go to
https://github.com/Baseflow/octo_imageand click the "Compare & pull request" button, targetingmain.
Please make sure you solved all warnings and errors reported by the static code analysis and that you fill in the full pull request template. Failing to do so will result in us asking you to fix it.