Niku

Property builder for styling Widget

Niku

Why

Styling widget in Flutter is hard to maintain. Since everything is a widget, a style property like Padding, Align, FractionallySizedBox, Tooltip is nested to compose a simple widget.

Niku allow developer to style property using builder or SwiftUI modifier like to compose styling. By reducing the nested hell andbracket usage in Flutter which made styling Flutter widget more maintainable.

Comparison

Getting Start

Niku required no dependencies at all. Starting by adding niku to pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter

  niku: 0.2.0

Then you're ready to create your awesome Flutter project with effortless styling!

See how simple building Text widget is!

import 'package:niku/niku.dart'; // <--- Import Niku library

NikuText("Hello World")
  .color(Colors.blue) // <-- Apply color
  .fontSize(21)       // <-- Add font size
  .build()            // <-- Create widget

Documentation

Niku is style property builder for styling user interface inspired by SwiftUI.

Table of content

Libraries

axis
base
button
column
extension
flatButton
iconButton
niku
niku
outlineButton
raisedButton
row
stack
text
textField
widget