division 0.9.0
division: ^0.9.0 copied to clipboard
Simple to use yet powerfull style widgets with syntax inspired by CSS.
0.9.0 #
- Null safety
0.8.8 #
- Added
autoFocusparameter to theeditablemethod inTxtStyle - Added
textOverflowmethod toTxtStyle
0.8.7 #
- Added
textShadowmethod toTxtStyle - Added
textElevationmethod toTxtStyle - Added
circlemethod toCoreStyle - Added
background.blendModemethod toCoreStyle - [Fix] Error when
Parentchild is [null] - [Fix]
BoxShadowall property not working corectly
0.8.6 #
- Renamed
GestureClasswidget toGestures - [Fix]
Txtplaceholder not working without an animation - [Fix]
onFocusChangetriggering when focus doesnt change. - Changed
boxShadowoffset property type fromList<double>toOffset - Changed
enableparameter ineditableto named - removed
SandGclass - Changed default
textAlignvalue tostart - minor performance improvements
0.8.5 #
- [Fix] Text resetting to default value after editing when using
Txtwitheditableenabled - Changed placeholder FontWeight to normal when using
Txtwitheditableenabled - Improved performance when using
Txtwitheditableenabled
0.8.4 #
- Added animation support for
fontSize,textColor,maxLines,letterSpacingandwordSpacing - Added
textDirectionmethod toTxtStyle
0.8.3+1 #
- [fix]
isTapnot working correctly
0.8.3 #
- Added
isTapmethod toGestureClass - Other minor improvements
0.8.2 #
- Added
onEditingCompleteparameter to the editable method inTxtStyle - Added
textDecorationtoTxtStyle - Added
maxLinesparameter to theeditablemethod - [Fix]
Ripplenot working whenBoxDecorationis null
0.8.1 #
- Added
placeholderparameter to the editable method inTxtStyle - Added
clonemethod to be able to clone aStyleClass - Added
textAlignmethod toTxtStyle - Other minor improvements
0.8.0+1 #
- [Fix] Fixed bug with
addmethod not working correctly
0.8.0 #
- Renamed
Divisionwidget toParent - Introduced
Txtwidget - [Beta] Introduced to posiblilty to make the
Txtwidget editable just like aTextField - [Breaking] Added new ways to calculate angles. Changed
useRadianstoAngleFormat - Minor tweaks and improvements
0.7.0 #
More strict typing is the theme of this update. #
- Added alternative class names.
StyleClass->SandGestureClass->G. - [Breaking] Changed
backgroundColorsyntax tobackground.color([Color]),background.hex()andbackground.rgba(int, int, int, [double]). Moved backgroundImage and backgroundBlur tobackgroundmethod. - [Breaking] Changed
alignmentsyntax fromalignment(dynamic [alignment])toalignment.[alignment] - [Breaking] Changed
overflowsyntax fromoverflow([type])tooverflow.[type]. - [Breaking] Changed
linearGradient,radialGradientandsweepGradientalignment paramteres from [dynamic] to [AlignmentGeometry]. - [Breaking] Changed
ripple,elevation,boxShadow,border,sweepGradient,radialGradient,linearGradientcolor parameters from [dynamic] to [Color]. Use [Color], rgb(), rgba() or hex() for color. - [Fix]
overflow.hidden()now clips with a borderRadius. - [Fix] Bug with Gestures not activating
0.6.4 #
- Added
opacityparamter to theelevationmethod. This parameter is a relative opacity constant. - Added the optional paramteres
behaviour,excludeFromSemanticsanddragStartBehaviourtoGestureClass. - Added
hexfunction. - [Fix]
ripplenow works together with all gestures. - [Breaking] As recomended in the dartlang documentation the single dotted chained methods is recalled.
.overflow('scroll')->..overflow('scroll'). https://dart-lang.github.io/linter/lints/avoid_returning_this.html
0.6.3 #
- Added support for singledotted chained methods for both the
StyleClassand theGestureClass...overflow('scroll')->.overflow('scroll').
0.6.2 #
- Added
overflowmethod toStyleClass. - [Breaking]
angledproperty inside theelevationmethod is renamed toangleand is now given in a circular value. 0.0 equals down. [null] equals directly under the widget.
0.6.1 #
- [Fix]
rippleandopacitynow works withaddmethod. - Other minor improvements and fixes
0.6.0 #
- Added
ripplemethod toStyleClass. - Added
opacitymethod toStyleClass. - Major rewrite of widget builder. Improved performance.
0.5.0 #
- Added
backgroundBlurmethod to theStyleClass. - Added
backgroundImagemethod toStyleClass. bordernow supports the use ofallandleft,right,topandbottomsimultaneous.'border(all: 10, left: 20)'.borderRadiusnow supports the use ofallandtopLeft,topRight,bottomLeftandbottomRightsimultaneous. 'borderRadius(all: 10, bottomLeft: 30)'.paddingandmarginnow supports the use of all parameters simultaneous.padding(all: 10, bottom: 50).- Added
rgb()andrgba()functions. May replace[int, int, int]and[int, int, int, double]formats in color parameters. - [Breaking]
ripplemethod removed until a better solution is implemented.
0.4.0 #
- [Breaking] Removed
hexandrgbaproperties and combines them with thecolorproperty and changes it to dynamic.colorproperty now supports HEX ('#xxxxxx'), RGBA ([int, int, int, double]), RGB ([int, int, int]) and [Color] format. - Changed alignment properties to dynamic. The alignment property now supports a variety of different formats.
- The widget tree is now dynamicly constructed. Unused widgets is no longer being added to the widget tree. Improved performance.
- Added
linearGradient(),radialGradient(),sweepGradient()andborder()methods to theStyleClass. - Added optional parameter
overridetoadd(), so you can choose to override already defined style or not when combining classes. - Added animation support for
scale(),rotate(),offsetandalign(). All styling properties now support animation. - [Breaking] Added the ability to change between using radians or values between 0 to 1 in the
StyleClass. Change by:StyleClass(useRadians: true)..[style]. Breaking because your values may be written in radians but now is interpreted as not. - [Breaking] Removed elevation
bgColorparameter. - [Breaking]
backgroundColorchanged from named parameter to unnamed. - [beta] Added
ripple()method to theStyleClass. Known issues: Doesnt cover the whole area whenborderandborderRadiusis in use. Problems with gestures. - [beta] Added some custom presets.
import 'package:division/presets.dart'.
0.3.0 #
- [Breaking] Major rewrite. Changed the
List<StyleItem>format to a customStyleClass. Changed theList<GestureItem>format to a customGestureClass. - [Breaking] Improved
elevation()style property - Added
animate(),rotate(),scale()andoffset()properties to the StyleClass - Enhanced preformance
- Other minor tweaks
0.2.0 #
- Added all gesture properties found in the GestureDetector widget
- Added
elevationstyle property containing boxShadow presets. - Fixed bug with S.align() and S.alignChild() style properties. They now work with
topLeft,topRight,bottomLeftandbottomRight! - General code improvements and optimizing
0.1.0 #
- Initial release/ idea
- Implementet the basic features for the
styleproperty and thegestureproperty for theDivisionwidget