create_atom 2.1.0-nullsafety create_atom: ^2.1.0-nullsafety copied to clipboard
An animated widget that displays atom with three electrons revolving around a nucleus at its center.
[2.1.0-nullsafety] - 2020-12-20 #
-
This version is a stable nullsafety release but dart's nullsafety is still in preview so you have to make changes to your app/package in which you are going to use it.
-
package -
- Added two new customization properties -
nucleusRadiusFactor
andorbitsWidthFactor
- One minor nullsafety fix
- Added two new customization properties -
-
example app -
- Updated app with new properties
- Background color can also be changed now
- Minor nullsafety fixes
[2.0.0-nullsafety.0] - 2020-12-16 #
-
package -
- Migrated to NullSafety
-
example app -
- Migrated to NullSafety
[2.0.0] - 2020-06-13 #
-
package -
- Now the Atom's stack uses flutter's painter library implementation to draw the atom and its animations.
- Painter library uses Skia graphics renderer to render graphical entities, so performance boosted by a factor 10 !
- Some size and scaling factors slightly reduced.
- Reduced many widgets in the Atom's build implementation to make it more performant.
- Heavy code-refactor and reduced LOC.
- Implemented dual EaseInOut curve in a single curved path using
CatmullRomCurve
. - Tried my best to mimic the original EaseInOut curve for both halves of the electron path.
- You can find more details here - https://api.flutter.dev/flutter/animation/CatmullRomCurve-class.html.
-
example app -
- Updated example app with
centerWidget
property and other v2 changes. - App demo is now live at - http://abhi011999.github.io/create_atom_flutter/.
- Updated example app with
[1.4.0] - 2020-04-25 (BREAKING CHANGE) #
-
package -
-
Replaced
scale
property withsize
property by implementing new logic of creating atom stack.For users below v1.4.0 - Replace
scale
property withsize
in your corresponding code and set the value ofsize
in accordance with this example -- If suppose
scale
is 1.0 thensize
will be 215.0 * 1.0 = 215 - If suppose
scale
is 0.3 thensize
will be 215.0 * 0.3 = 64.5 Because 215.0 was hard-coded value by default.
- If suppose
-
Fixed centerWidget scaling issue, now it scales with the atom
-
Added extensive code documentation
-
Re-factored and re-structured the libraries
-
-
example app -
- Updated app with the breaking change
[1.3.0] - 2020-04-21 #
-
package -
- Added a new
centerWidget
property and feature - Corrected orbit angles in degrees
- Fixed orbits scale clipping above 2.0x
- Electron paths are now dynamically updated when the parent widget updates
- Added a new
-
example app -
- Added a new playground mode (web support will be added soon)
[1.2.0] - 2020-04-10 #
- Added example app for demonstration
- Updated documentation
- Removed un-used test file (tests can be added in future)
[1.1.0] - 2020-04-10 #
- Added documentation and example project.
[1.0.0] - 2020-04-09 #
- Initial release, go create some atoms !!