v_widgets 0.0.1+1 copy "v_widgets: ^0.0.1+1" to clipboard
v_widgets: ^0.0.1+1 copied to clipboard

Widget collection inspired by Vue.js conditional rendering

Features #

Widget collection inspired by Vue.js conditional rendering.

Currently only supports Vif.

Usage #

To use Vif, simply pass in closures for test (returning bool), ifTrue (returning Widget) and optionally ifFalse(Widget, defaults to SizedBox).

Vif(
    test: () => _orienatation == Orientation.landscape,
    ifTrue: () => _buildLandscape( context ),
    ifFalse: () => _buildPortrait( context ),
)
Vif(
    test: () => featureEnabled,
    ifTrue: () => _buildFeature( context ),
)
0
likes
100
pub points
48%
popularity

Publisher

unverified uploader

Widget collection inspired by Vue.js conditional rendering

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on v_widgets