niku 1.0.0-alpha.1 niku: ^1.0.0-alpha.1 copied to clipboard
Property builder for styling Widget with SwiftUI like pattern
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, 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: # Using latest version
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
Documentation #
Niku is style property builder for styling user interface inspired by SwiftUI.
Table of content #
-
- niku
- Add
.niku()
extension for widget
- Add
- niku
-
Deprecated
- FlatButton
- Niku extension for
FlatButton
- Niku extension for
- RaisedButton
- Niku extension for
RaisedButton
- Niku extension for
- OutlineButton
- Niku extension for
OutlineButton
- Niku extension for
- FlatButton