niku 0.3.1 niku: ^0.3.1 copied to clipboard
Property builder for styling Widget
Niku #
Property builder for styling Widget
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.
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 #
-
- Niku
- Niku base for styling widget
- Text
- Niku extension for
Text
- Niku extension for
- Column
- Niku extension for
Row
- Niku extension for
- Row
- Niku extension for
Column
- Niku extension for
- Stack
- Niku extension for
Stack
- Niku extension for
- TextField
- Niku extension for
TextFormField
- Niku extension for
- FlatButton
- Niku extension for
FlatButton
- Niku extension for
- RaisedButton
- Niku extension for
RaisedButton
- Niku extension for
- OutlineButton
- Niku extension for
OutlineButton
- Niku extension for
- IconButton
- Niku extension for
IconButton
- Niku extension for
- Niku
-
- niku
- Add
.niku()
extension for widget
- Add
- niku