Skip to content

2.0.0 Stable

Choose a tag to compare

@SaltyAom SaltyAom released this 21 Feb 10:22
· 81 commits to main since this release

This day marks a milestone of a brighter new future in Flutter app development.
The release of Niku codename Heaven and Earth or Niku 2.

After months of research and experiment, we finally settle down with the answer, and we think you going to love it.

Niku 2

TLDR; an entire rewrite, read more at Introducing Niku 2

shirakami-fubuki-virtual-youtuber

Below is the Change Log from the previous 2.0 beta

[2.0.0-compat.0] - 2022/02/21

Base on 2.0.0-rc.8

A compatibility version for working with both v1 and v2 for gradually migrating from v1.

To gradually migrate from v1, simply replace all:

// From
import 'package:niku/niku.dart';
// into
import 'package:niku/v1/niku.dart';

You can easily use IDE like VS Code to find and replace all package:niku/ with package:niku/v1/ then it should work just fine, gradually migrate from v1.

[2.0.0-rc.8] - 2022/02/20

Bux Fix:

  • Add copied to NikuImage, NikuSlider, NikuRangeSlider.
  • Apply parent builder to copied method

[2.0.0-rc.7] - 2022/02/20

Feature:

  • New use on NikuWidget to apply multiple styles at once
  • Add useBorder, useRoundedBorder
  • Add apply to NikuIcon
  • Add WidthHeightMacro

Change:

  • Add Full Macro conventions
  • Use Parent Builder stack instead of direct setter to support apply parent styling

Bux Fix:

  • Fix wrong spelling of actionPb
  • Use Full Macro on Alert
  • n.showDialog now accepts any widget

[2.0.0-rc.6] - 2022/02/19

Change:

  • showNikuDialog now accepts any widget

[2.0.0-rc.5] - 2022/02/17

Bug Fix:

  • Add default .rounded to NikuButton
  • Fix gap inserted to last children
  • Fix Column with gap required at least 1 children

[2.0.0-rc.4] - 2022/02/14

Breaking Change:

  • Remove NikuImage.file factory to support web platform.

[2.0.0-rc.3] - 2022/02/14

Breaking Change:

  • Remove cached network image due to not supporting all platform yet.

[2.0.0-rc.2] - 2022/02/13

Feature:

  • Add .quarterTurns, bgBlur, clipRect, clipOval to Niku

Change:

  • Remove default styling from NikuText to match default Flutter Text, eg. TextBasis.

Bug fixes:

  • AxisMacro not assigning wrong field name

[2.0.0-rc.1] - 2022/02/13

Breaking Change:

  • Migrate .useScreen to useSize
  • Migrate .useQuery to .useScreen
  • Migrate .useEvents to useGesture
  • Remove TransformSelectableText

Feature:

  • Add .useQuery to handle MediaQueryData
  • Add useBorder, useNikuBorder, useBorderColor, useBorderWidth hook
  • Add .useDarkMode to handle element styling on Dark Theme
  • Add n.Image.cache to use CacheNetworkImage

Bug fixes:

  • Correct focusedErrorBorder setter name

[2.0.0-experimental.4] - 2022/01/31

Breaking Change:

  • Remove asNiku on Widget (still working for object)
  • Migrate .useOn to useEvents

Feature:

  • Add .focusColor, .splashColor, highlightColor, hoverColor to NikuCheckboxListTile
  • Add .adaptive to NikuAlert
  • Add .adaptive to Switch
  • Add .adaptive to NikuTextFormField
  • Add NikuShowDialog to handle adaptive dialog
  • New NikuQuery widget

Bug fixes:

  • .on property in Niku doesn't passing dependencies to concilation process

[2.0.0-experimental.3] - 2022/01/29

Feature:

Bug fixes:

  • .on property in Niku doesn't passing dependencies to concilation process

[2.0.0-experimental.2] - 2022/01/25

Feature:

  • Game Changing, NikuOn, .on and .freezed property, read more about it here
  • NikuDropdownButton widget for DropdownButton

Bug fixes:

  • Change from Nullish cascade equality to nullish check to override useStyle's style

Breaking Change:

  • Migrate .useStyle to .useTextStyle() on NikuText.
  • Migrate .useStyle to .useButtonStyle() on NikuButton.
  • Change .useStyle to .useButtonStyle() on NikuButton.
  • Migrate .useBuilder, useParent to useChild on Niku.
  • Migrate from .value to .widget on every Niku component.
  • Migrate from style to textStyle on every Niku component.

[2.0.0-experimental.1] - 2021/12/16

  • Namespace
  • Selectable Text

[2.0.0-experimental.0] - 2021/12/16

Heaven and Earth, batch 1.
@see #17