Skip to content

Releases: SaltyAom/niku

Initial Motion and Optimization

15 Mar 14:15
Compare
Choose a tag to compare

The release is attempt to conclude version 0.5 of Niku.
FBK

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 for AnimationBuilder
  • Add animatedContainer for AnimatedContainer
  • Add semantics for Semantics

Changed:

  • Move use of Container to DecoratedBox
    • The property which affected this changed including:
      • boxDecoration
      • border
      • shadows
  • Move use of Container to SizedBox
    • The property which affected this changed including:
      • fullSize
      • fullWidth
      • fullHeight

[0.5.4] - 2021/3/11

Bug fixes:

  • Wrong size on widthPercent, heightPercent and sizePercent
  • Unable to use NikuRow without specifying crossAxisAlignment
  • Add optional onTap to .inkwell

[0.5.3] - 2021/3/11

Bug fixes:

  • Wrong size on widthPercent, heightPercent and sizePercent

[0.5.2] - 2021/3/11

Feature:

  • Add builder on Niku for composing custom widget.
  • Add widthPercent, heightPercent and sizePercent

Changed:

  • bg and backgroundColor of Niku are now using ColoredBox instead of Container
  • 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

06 Mar 14:49
Compare
Choose a tag to compare

"For the future"
FBK Dancing

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 to oldButton.dart
  • Move NikuButton to button.dart
  • Importing package:niku/niku.dart won't import oldButton.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

04 Mar 17:01
Compare
Choose a tag to compare

Migrate to Null Safety of Flutter 2
FBK

Feature:

  • Add support for Sound Null Safety of Flutter 2

Refactor:

  • Constructor to use this as parameter
  • Remove overflow from stack as it's deprecated

Documentation:

  • Fix Null Coalesce
  • Fix borderColor, borderStyle from crashing on outlineButton

All thing niku

22 Feb 07:19
Compare
Choose a tag to compare

Now you can use Niku everywhere! Introducting extension

FBK

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:
  • Add more property to Base Widget
    • Backdrop filter
    • Positioned
    • singleChildScrollView / scrollable
    • flexible / flex
  • Add group import
  • Add extension Widget
    • Add .niku() extension for widget

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

21 Feb 06:52
Compare
Choose a tag to compare

[0.2.0] - 2021/2/21

Feature:

  • Add support for:

  • Add new property to Niku (base):

    • on - Event listener
    • material - Add [Material] to Widget
    • inkWell - Add [InkWell] to Widget
    • border - Decorate with border using [Border]
  • Add group for flatButton, raisedButton, outlineButton and flatButton as package: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

20 Feb 18:06
Compare
Choose a tag to compare

Bug fixes:

  • Fix require padding for NikuFlatButton, NikuOutlineButton and NikuRaisedButton

Initialization

20 Feb 17:10
Compare
Choose a tag to compare

Initialize project

Add support for