Comments (8)
Yeah or just use the dart format command, this automatically formats the code according to dart guidelines, so it will be the same for everyone.
from exer_log.
Would it work just to use the default Formatter that comes with Flutter?
When I reinstall my dart plugins I get prompted to add a config file for the dart formatter.
Not sure if it's relevant though.
from exer_log.
Yeah but I don't think we can force everybody to use the same formatter. Also people might have different settings like line length and such. this is why in the pull request right now everybody's formatting looks different which makes it hard to see the changes. The dart format command should always format the same, so if that gets run before each PR we should only see the actual changes, not any formatting changing.
from exer_log.
I see so I guess probably having a uniform format or code structure should just work for everyone then?
For example writing functions and variables in a certain way that makes it clean and not congested.
Haven't paid much attention to format styles. I just write and care about the refactoring later 😅
from exer_log.
Yeah I good start would be to write commas at the end of every line and attribute, this forces the formatter to put these on separate lines and help to make the formatting more uniform.
from exer_log.
So I guess it's just a matter of writing a config file that will be read by the formatter, then format the code accordingly?
from exer_log.
If nobody has already started I would like to add this to the codebase. :)
We just need to add a new job in the workflows, that runs flutter format. Should not be that big of a deal, shouldn't it?
from exer_log.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.
from exer_log.
Related Issues (20)
- Workouts not saved to database and historical workouts not show in calendar HOT 6
- Error, while creating a new workout in debug-mode HOT 7
- Unit Tests For essential features HOT 6
- Mergeable not working now HOT 3
- Refactor: replace ThemeProvider HOT 1
- Proposing to change license from MIT to GPLv3 HOT 18
- Implement named routing HOT 1
- Run build checks in every PR HOT 3
- Add template for pull requests
- Request to create a website for this open-source project HOT 10
- Add stalebot to manage stale and irrelevant PRs and issues HOT 8
- Proposal to add issue templates HOT 3
- Please add logo to @EXERLOG organization HOT 2
- Implement Exercise type
- Firebase config: add workoutId in documents returned from getWorkoutOnDate HOT 2
- Ensure all contributors are added HOT 4
- Configure stale management in mergeable
- Firebase configuration HOT 3
- Dart Legacy code and Null Safety HOT 1
- [BUG] Cannot build the app for android HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exer_log.