Releases: SaltyAom/niku
Initial Motion and Optimization
The release is attempt to conclude version 0.5 of Niku.
This introduce the initial support for motion and animation also optimization.
Instead of using Container
for styling, Niku now prefer ColoredBox
, DecoratedBox
and SizedBox
where suitable.
This help optimizing the whole build process by using the smaller subset of Widget instead of full-blown like Container.
[0.5.5] - 2021/3/15
Feature:
- Add
animatedBuilder
,animated
forAnimationBuilder
- Add
animatedContainer
forAnimatedContainer
- Add
semantics
forSemantics
Changed:
- Move use of
Container
toDecoratedBox
- The property which affected this changed including:
- boxDecoration
- border
- shadows
- The property which affected this changed including:
- Move use of
Container
toSizedBox
- The property which affected this changed including:
- fullSize
- fullWidth
- fullHeight
- The property which affected this changed including:
[0.5.4] - 2021/3/11
Bug fixes:
- Wrong size on
widthPercent
,heightPercent
andsizePercent
- Unable to use
NikuRow
without specifyingcrossAxisAlignment
- Add optional
onTap
to.inkwell
[0.5.3] - 2021/3/11
Bug fixes:
- Wrong size on
widthPercent
,heightPercent
andsizePercent
[0.5.2] - 2021/3/11
Feature:
- Add
builder
on Niku for composing custom widget. - Add
widthPercent
,heightPercent
andsizePercent
Changed:
bg
andbackgroundColor
ofNiku
are now usingColoredBox
instead ofContainer
Niku
now don't required any constructor Widget
[0.5.1] - 2021/3/7
Bug fixes:
- Fix apply overriding written value
Bye, bye, FlatButton, welcome NikuButton
As Flutter 1.22 introduced new Material Button TextButton
, ElevatedButton
and OutlinedButton
to replace FlatButton
, RaisedButton
and OutlineButton
in order, Flutter team note that old API might be deprecated some time in the future and might be fully removed very soon. The deprecation is started now at Flutter 2.
To fully transition to Flutter 2, Niku also introduced new NikuButton
, a single simple widget to compose all button.
This version is aimed for fully transition to Flutter 2 by removing old, deprecated API and replace with new one.
NikuButton is simple, you defined which style you want and build it as button you preferred.
Let's built TextButton
NikuButton(Text("Flat Button"))
.bg(Colors.blue)
.px(40)
.py(20)
.rounded(8)
.my(8)
.build() // Built as TextButton
NikuButton(Text("Flat Button"))
.bg(Colors.blue)
.px(40)
.py(20)
.rounded(8)
.my(8)
.elevated() // Built as ElevatedButton
As you guessed, the default build
is TextButton
.
Buildable button including:
- TextButton
- TextButton.icon
- Elevated
- Elevated.icon
- OutlinedButton
- OutlinedButton.icon
We glad you interested in Niku! See you some time soon~
Breaking Change
- Deprecated:
- FlatButton
- RaisedButton
- ElevatedButton
- Move
button.dart
tooldButton.dart
- Move
NikuButton
tobutton.dart
- Importing
package:niku/niku.dart
won't importoldButton.dart
- Only support Flutter 2.0.0 or newer
Feature:
- Add
NikuButton
for new building new universal Button including- TextButton
- TextButton.icon
- ElevatedButton
- ElevatedButton.icon
- OutlinedButton
- OutlinedButton.icon
Documentation
- Add code highlight to widget example usage
Null safety and Flutter 2
All thing niku
Now you can use Niku everywhere! Introducting extension
Extension
Modifying or extending Widget
property. Which mean anything that is Widget got extend.
Now we can extend widget with .niku()
property!
Read more at Available Extension
Feature:
- Add support for:
- NikuStack
- Niku extension for
IconButton
- Niku extension for
- NikuStack
- Add more property to Base Widget
- Backdrop filter
- Positioned
- singleChildScrollView / scrollable
- flexible / flex
- Add group import
- Add extension Widget
- Add
.niku()
extension for widget
- Add
Documentation:
- Add property documentation
- Correcting wrong spelling
Bug fixes:
- Fixes border not rendering children
- Mark children constructor in Row as required
Icon Button and Event Listener
[0.2.0] - 2021/2/21
Feature:
-
Add support for:
- IconButton
- Niku extension for
IconButton
- Niku extension for
- IconButton
-
Add new property to
Niku (base)
:on
- Event listenermaterial
- Add [Material] to WidgetinkWell
- Add [InkWell] to Widgetborder
- Decorate with border using [Border]
-
Add group for
flatButton
,raisedButton
,outlineButton
andflatButton
aspackage:niku/widget/button
-
Bug fixes:
- Wrong spelling of documentation in several place
- Prevent
toolbarOptions
from crashing if not specified all by adding default value
Mandatory require padding
Bug fixes:
- Fix require padding for
NikuFlatButton
,NikuOutlineButton
andNikuRaisedButton
Initialization
Initialize project
Add support for
- Niku
- Niku base for styling widget
- NikuText
- Niku extension for
Text
- Niku extension for
- Column
- Niku extension for
Row
- Niku extension for
- Row
- Niku extension for
Column
- Niku extension for
- NikuTextField
- Niku extension for
TextFormField
- Niku extension for
- NikuFlatButton
- Niku extension for
FlatButton
- Niku extension for
- NikuRaisedButton
- Niku extension for
RaisedButton
- Niku extension for
- NikuOtlineButton
- Niku extension for
OutlineButton
- Niku extension for