astronomical_measurements 0.2.4
astronomical_measurements: ^0.2.4 copied to clipboard
The library for keeping and converting astronomical measurements. Feel free to use it in your awesome projects.
Astronomical Measurements #
Keeping and converting astronomical measurements. Easy-to-use and well-tested Dart package. Feel free to use it in your awesome projects.
Android | iOS | Linux | MacOS | Web | Windows | |
---|---|---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | platform |
Dart | Flutter | |
---|---|---|
✅ | ✅ | SDK |
Share some ❤️ and star repo to support the project.
Usage #
Converting #
final u = Unit.parsec(12);
print('$u = ${u.toLightYear} = ${u.toKilometre}');
12.0 pc = 39.138765325920005 ly = 2475178.5718530393 au = 370281443951481.56 km
See also the folder test
for the use cases.
Supported Units #
Distance, Size #
- gigaparsec
- megaparsec
- kiloparsec
- parsec
- light year
- million astronomical units
- thousand astronomical units
- hundred astronomical units
- astronomical unit
- million kilometres
- thousand kilometres
- hundred kilometres
- kilometre
- metre
- centimetre
- millimetre
Welcome to Inspiration #
Requests and suggestions are warmly welcome.
Contributions are what make the open-source community such a great place to learn, create, and be inspired.
If this is your first contribution, I'll leave you with some of the best links I've found: they will help you get started or/and become even more efficient.
- Guide to Making a First Contribution. You will find the guide in your native language.
- How to Contribute to Open Source. Longread for deep diving for first-timers and for veterans.
- Summer Guide from Google.
The package AstronomicalMeasurements is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.
General questions are best asked on StackOverflow.
And here is a curated list of how you can help:
- Report parts of the documentation that are unclear.
- Fix typos/grammar mistakes.
- Update the documentation or add examples.
- Report bugs and scenarios that are difficult to implement.
- Implement new features by making a pull-request (look below).
TODO (perhaps) #
Once you start using the AstronomicalMeasurements, it will become easy to choose the functionality to contribute. But if you already get everything you need from this package but have some free time, let me write here what I have planned:
- A mass.
It's just a habit of mine: writing down ideas that come to mind while working on a project. I confess that I rarely return to these notes. But now, hopefully, even if you don't have an idea yet, the above notes will help you choose the suitable "feature" and become a contributor to the open-source community.
Created with ❤️