Features

Widget collection inspired by Vue.js conditional rendering.

Currently only supports Vif.

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

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 ),
)

Libraries

v_widgets