We love your input! We want to make contributing to Weight Scale Plugin as easy and transparent as possible, whether it's:
- 🐛 Reporting a bug
- 📱 Adding support for a new scale device
- 💬 Discussing the current state of the code
- ✨ Submitting a feature request
- 📝 Proposing changes to documentation
- 🔄 Becoming a maintainer
- Flutter SDK (3.27.0 or later)
- Android development environment
- Git
- A compatible scale device (for device-specific contributions)
-
Fork the repository
git clone https://github.com/YOUR_USERNAME/weight_scale.git cd weight_scale -
Install dependencies
flutter pub get cd example && flutter pub get
-
Run tests
flutter test -
Run the example app
cd example flutter run
We use GitHub to host code, track issues and feature requests, as well as accept pull requests.
- Fork the repo and create your branch from
main - If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code follows the existing style
- Issue that pull request!
- Ensure any install or build dependencies are removed before the end of the layer when doing a build
- Update the README.md with details of changes to the interface
- Update the CHANGELOG.md following Keep a Changelog format
- The PR will be merged once you have the sign-off of a maintainer
When you submit code changes, your submissions are understood to be under the same MIT License that covers the project.
Report bugs using GitHub's issue tracker
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
- Install Flutter SDK
- Clone this repository
- Run
flutter pub getin the root directory - Run
cd example && flutter pub getfor the example app
- Run
flutter testfor unit tests - Run
cd example && flutter test integration_test/for integration tests - Test on real hardware when possible
- Follow Dart style guide
- Use
flutter formatto format your code - Follow existing patterns in the codebase
- Add documentation for public APIs
By contributing, you agree that your contributions will be licensed under the MIT License.