rad 0.3.0
rad: ^0.3.0 copied to clipboard
A zero-dependency frontend framework for writing web apps in plain Dart. Inspired from Flutter.
0.3.0 #
Update
-
New shorthand
Align.center. It has same semantics as of Flutter'sCenterwidget. -
Container widget:
- Added
marginproperty, that let's you set margin around Container. - Added
paddingproperty, that let's you set padding space inside Container.
- Added
-
Custom alignments for positioning a widget on desired locations.
-
Align( alignment: Alignment(80, 40); // top 80% & left 40% ...
-
Core update
-
Widget are now smart enough to issue changes to DOM only when required. Previously a widget always issue update to part of its interface that might or might not have affected by state change in parent because this is the easiest way to ensuret that its corresponding DOM is always up-to-date. From now, widgets will issue updates to DOM only if there description has changed.
For example, in below code, Text widget will never issue a update no matter how many times you do toggle.
Text(isClicked ? "hey" : "hey")This feature gets more effective in nested widgets. Take a look at another example,
Align( alignment: isClicked ? Alignment.center : Alignment.center, child: Container( style: isClicked ? "red" : "red", child: Text(isClicked ? "hey" : "hey"), ), ),Above Align widget will affect DOM only once when its being built. It'll never issue a DOM update during rest of its lifetime.
Changes:
sizingUnitis renamed tosizeUnitpositioninUnitis renamed topositionUnit
0.2.1 #
Update
- Allow creation of minified and optimized builds.
0.2.0 #
Core update
-
Sub-tree rebuilds are now removed. Previously,
setStateforces all childs widgets to dispose and rebuild themselves. From now, only widgets that requires update, will update only parts of their interface that that might be affected by state change in their parent. -
Framework now allow Stateful widgets nested inside other stateful widgets to preserve their state even when their parent state has changed.
0.1.0 #
Update
- Add: Overlay widget
Changes
- GestureDetector
onTapEventproperty is added in-place ofonTaponTapnow handlesVoidCallbacks
0.0.1 #
- Initial release